mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-13 18:31:18 +01:00
Add comment
This commit is contained in:
parent
19103031ee
commit
6cefcbfe5d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user