diff --git a/queues/offline_monitoring.go b/queues/offline_monitoring.go index cc81d4f..ebefe16 100644 --- a/queues/offline_monitoring.go +++ b/queues/offline_monitoring.go @@ -30,7 +30,7 @@ func offlineMonitoring() { } // 没有启用离线监听时,即使客户端已经离线则也不执行 - if *clientInfo.OfflineMonitoring != 1 || clientInfo.Email == "" { + if clientInfo.OfflineMonitoring == nil || *clientInfo.OfflineMonitoring != 1 || clientInfo.Email == "" { continue }