Kaynağa Gözat

check for connection mq connection open

(cherry picked from commit 13b11033b0795693a0a1a0a225db50b8a5c001ae)
abhishek9686 1 yıl önce
ebeveyn
işleme
c447845749
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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