浏览代码

check for connection mq connection open

(cherry picked from commit 13b11033b0795693a0a1a0a225db50b8a5c001ae)
abhishek9686 1 年之前
父节点
当前提交
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