提交 62cc4b38 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

fix #1197

上级 257ce98a
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
"rxjs": "^6.1.0", "rxjs": "^6.1.0",
"state-switch": "^0.6.2", "state-switch": "^0.6.2",
"watchdog": "^0.8.1", "watchdog": "^0.8.1",
"wechaty-puppet": "^0.8.2", "wechaty-puppet": "^0.8.4",
"ws": "^5.2.0" "ws": "^5.2.0"
}, },
"devDependencies": { "devDependencies": {
......
...@@ -76,17 +76,6 @@ import { ...@@ -76,17 +76,6 @@ import {
Room, Room,
} from './user/' } from './user/'
// export const WECHAT_EVENT_DICT = {
// friend : 'tbw',
// login : 'tbw',
// logout : 'tbw',
// message : 'tbw',
// 'room-join' : 'tbw',
// 'room-leave': 'tbw',
// 'room-topic': 'tbw',
// scan : 'tbw',
// }
export const WECHATY_EVENT_DICT = { export const WECHATY_EVENT_DICT = {
...CHAT_EVENT_DICT, ...CHAT_EVENT_DICT,
dong : 'tbw', dong : 'tbw',
...@@ -1149,7 +1138,13 @@ export class Wechaty extends Accessory implements Sayable { ...@@ -1149,7 +1138,13 @@ export class Wechaty extends Accessory implements Sayable {
} }
public unref(): void { public unref(): void {
log.warn('Wechaty', 'unref() To Be Implemented. See: https://github.com/Chatie/wechaty/issues/1197') log.verbose('Wechaty', 'unref()')
if (this.lifeTimer) {
this.lifeTimer.unref()
}
this.puppet.unref()
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册