2
0
Эх сурвалжийг харах

check for connection mq connection open

(cherry picked from commit 13b11033b0795693a0a1a0a225db50b8a5c001ae)
abhishek9686 1 жил өмнө
parent
commit
c447845749
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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