mirror of https://github.com/status-im/go-waku.git
fix: dead loop after calling WakuNode.Stop()
This commit is contained in:
parent
8d6b2cd721
commit
898f433d2c
|
@ -28,7 +28,7 @@
|
|||
];
|
||||
doCheck = false;
|
||||
# FIXME: This needs to be manually changed when updating modules.
|
||||
vendorSha256 = "sha256-17E63+sejYDLkYH43J02cE8K4JjTYoi+kpMyEt+diFU=";
|
||||
vendorSha256 = "sha256-o8SeaxD5CDhYqMEr7OtaD0CerwO9HAbA0IJnbDjSLBM=";
|
||||
# Fix for 'nix run' trying to execute 'go-waku'.
|
||||
meta = { mainProgram = "waku"; };
|
||||
};
|
||||
|
|
|
@ -486,11 +486,11 @@ func (w *WakuNode) Stop() {
|
|||
w.store.Stop()
|
||||
w.legacyFilter.Stop()
|
||||
w.filterFullnode.Stop()
|
||||
w.peerExchange.Stop()
|
||||
|
||||
if w.opts.enableDiscV5 {
|
||||
w.discoveryV5.Stop()
|
||||
}
|
||||
w.peerExchange.Stop()
|
||||
|
||||
w.peerConnector.Stop()
|
||||
|
||||
|
|
Loading…
Reference in New Issue