From 6cefcbfe5dc78f0fd93858f13078d317e5c46a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Tue, 9 Jul 2024 16:44:12 +0200 Subject: [PATCH] Add comment --- relay/client/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/relay/client/client.go b/relay/client/client.go index efc3fbdae..4105331e5 100644 --- a/relay/client/client.go +++ b/relay/client/client.go @@ -205,6 +205,7 @@ func (c *Client) SetOnDisconnectListener(fn func()) { c.onDisconnectListener = fn } +// HasConns returns true if there are connections. func (c *Client) HasConns() bool { c.mu.Lock() defer c.mu.Unlock()