Fix switch tests

This commit is contained in:
Jae Kwon
2015-03-25 02:36:59 -07:00
parent 08a83aa9fb
commit aed4bbf0f0
4 changed files with 56 additions and 68 deletions

View File

@ -94,13 +94,13 @@ func (n *Node) Start() {
go n.inboundConnectionRoutine(l)
}
n.book.Start()
n.sw.StartAll()
n.sw.StartReactors()
}
func (n *Node) Stop() {
log.Info("Stopping Node")
// TODO: gracefully disconnect from peers.
n.sw.StopAll()
n.sw.Stop()
n.book.Stop()
}