mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 07:16:06 +08:00
check for connection mq connection open
This commit is contained in:
parent
cdfab770ae
commit
13b11033b0
2
mq/mq.go
2
mq/mq.go
|
@ -126,7 +126,7 @@ func Keepalive(ctx context.Context) {
|
|||
|
||||
// IsConnected - function for determining if the mqclient is connected or not
|
||||
func IsConnected() bool {
|
||||
return mqclient != nil && mqclient.IsConnected()
|
||||
return mqclient != nil && mqclient.IsConnectionOpen()
|
||||
}
|
||||
|
||||
// CloseClient - function to close the mq connection from server
|
||||
|
|
Loading…
Reference in a new issue