瀏覽代碼

check for connection mq connection open

abhishek9686 1 年之前
父節點
當前提交
13b11033b0
共有 1 個文件被更改,包括 1 次插入1 次删除
  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