修复某些情况下暂停任务会自动开始任务的问题

This commit is contained in:
lyswhut
2020-02-01 14:45:52 +08:00
parent 5edf51810d
commit f56c42f353
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -140,7 +140,8 @@ class Task extends EventEmitter {
if (response.complete) {
this.__handleComplete()
} else {
this.__handleError(new Error('The connection was terminated while the message was still being sent'))
// this.__handleError(new Error('The connection was terminated while the message was still being sent'))
this.stop()
}
})
})