Skip to content

Commit

Permalink
fix(c-bindings): stop discv5
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos committed Dec 21, 2022
1 parent e69d6e6 commit d4e0a70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mobile/api_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit d4e0a70

Please sign in to comment.