Skip to content

Commit d4e0a70

Browse files
committed
fix(c-bindings): stop discv5
1 parent e69d6e6 commit d4e0a70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mobile/api_discovery.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ func StopDiscoveryV5() string {
5757
if wakuNode.DiscV5() == nil {
5858
return MakeJSONResponse(errors.New("DiscV5 is not mounted"))
5959
}
60-
err := wakuNode.DiscV5().Start(context.Background())
61-
return MakeJSONResponse(err)
60+
wakuNode.DiscV5().Stop()
61+
return MakeJSONResponse(nil)
6262
}

0 commit comments

Comments
 (0)