Add comment

This commit is contained in:
Zoltán Papp 2024-07-09 16:44:12 +02:00
parent 19103031ee
commit 6cefcbfe5d

View File

@ -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()