Forráskód Böngészése

check for connection mq connection open

(cherry picked from commit 13b11033b0795693a0a1a0a225db50b8a5c001ae)
abhishek9686 1 éve
szülő
commit
c447845749
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      mq/mq.go

+ 1 - 1
mq/mq.go

@@ -125,7 +125,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