From d4e0a70233e82b7ab66296d67121993d84fd1d82 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 21 Dec 2022 14:58:18 -0400 Subject: [PATCH] fix(c-bindings): stop discv5 --- mobile/api_discovery.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/api_discovery.go b/mobile/api_discovery.go index cf602205..2b92501a 100644 --- a/mobile/api_discovery.go +++ b/mobile/api_discovery.go @@ -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) }