Skip to content

Commit

Permalink
fix #1197
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Jul 12, 2018
1 parent 257ce98 commit 62cc4b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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": {
Expand Down
19 changes: 7 additions & 12 deletions src/wechaty.ts
Expand Up @@ -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',
Expand Down Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 62cc4b3

Please sign in to comment.