summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/backend/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/backend/api.go b/pkg/backend/api.go
index 60d51f3..0db26ae 100644
--- a/pkg/backend/api.go
+++ b/pkg/backend/api.go
@@ -63,7 +63,7 @@ func UseLocation(label string) {
ctx.bm.UseGateway(label)
go trigger(OnStatusChanged)
if ctx.Status == on && label != strings.ToLower(ctx.CurrentLocation) {
- ctx.bm.Reconnect()
+ go ctx.bm.Reconnect()
}
}