Explorar o código

check for connection mq connection open

abhishek9686 hai 1 ano
pai
achega
13b11033b0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mq/mq.go

+ 1 - 1
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