fix(c-bindings): stop discv5

This commit is contained in:
Richard Ramos 2022-12-21 14:58:18 -04:00 committed by RichΛrd
parent e69d6e61dd
commit d4e0a70233

View File

@ -57,6 +57,6 @@ func StopDiscoveryV5() string {
if wakuNode.DiscV5() == nil {
return MakeJSONResponse(errors.New("DiscV5 is not mounted"))
}
err := wakuNode.DiscV5().Start(context.Background())
return MakeJSONResponse(err)
wakuNode.DiscV5().Stop()
return MakeJSONResponse(nil)
}