Skip to content

Commit

Permalink
add unref() wechaty/wechaty#1197
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Jul 12, 2018
1 parent a8fae02 commit 081e255
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/puppet-mock.ts
Expand Up @@ -436,6 +436,13 @@ export class PuppetMock extends Puppet {
return
}

public unref (): void {
log.verbose('PuppetMock', 'unref()')
super.unref()
if (this.loopTimer) {
this.loopTimer.unref()
}
}
}

export default PuppetMock

0 comments on commit 081e255

Please sign in to comment.