* add Router.Start()

* remove Router.Run()
This commit is contained in:
Jeff Becker
2017-08-27 11:02:37 -04:00
parent aeb33c27aa
commit 993c006de3
2 changed files with 22 additions and 3 deletions

View File

@ -20,9 +20,9 @@ func main() {
// TODO: graceful shutdown
r.Stop()
})
go r.Run()
defer r.Close()
r.Start()
r.Wait()
r.Close()
} else {
log.Errorf("failed to create i2p router: %s", err)
}