diff --git a/package.json b/package.json index 07b551a06..b73fb21e6 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "rxjs": "^6.1.0", "state-switch": "^0.6.2", "watchdog": "^0.8.1", - "wechaty-puppet": "^0.8.2", + "wechaty-puppet": "^0.8.4", "ws": "^5.2.0" }, "devDependencies": { diff --git a/src/wechaty.ts b/src/wechaty.ts index d103088a2..d227c29d0 100644 --- a/src/wechaty.ts +++ b/src/wechaty.ts @@ -76,17 +76,6 @@ import { Room, } 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 = { ...CHAT_EVENT_DICT, dong : 'tbw', @@ -1149,7 +1138,13 @@ export class Wechaty extends Accessory implements Sayable { } 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() } }