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 37eb32c commit d439ccc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/puppet-puppeteer.ts
Expand Up @@ -1558,6 +1558,16 @@ export class PuppetPuppeteer extends Puppet {
}
}

public unref (): void {
log.verbose('PuppetPuppeteer', 'unref ()')
super.unref()

if (this.scanWatchdog) {
this.scanWatchdog.unref()
}

// TODO: unref() the puppeteer
}
}

export default PuppetPuppeteer

0 comments on commit d439ccc

Please sign in to comment.