Commit d4f4564e authored by martin hou's avatar martin hou

fix: 休眠事件仅在有挂起的消息时触发

parent 4a9305c3
...@@ -195,7 +195,7 @@ function Jensen(log, conn) { ...@@ -195,7 +195,7 @@ function Jensen(log, conn) {
{ {
// 应该要连续多次5秒的间隔才能算从休眠中恢复 // 应该要连续多次5秒的间隔才能算从休眠中恢复
// 这个状态很可能只是一次临时唤醒,我需要更准确的彻底恢复 // 这个状态很可能只是一次临时唤醒,我需要更准确的彻底恢复
if (typeof(self.onwakeup) == 'function') if (typeof(self.onwakeup) == 'function' && Boolean(current))
{ {
setTimeout(function() { setTimeout(function() {
let currentTime = new Date().getTime(); let currentTime = new Date().getTime();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment