Skip to content

Commit

Permalink
Merge pull request #96 from holochain/fix-signal
Browse files Browse the repository at this point in the history
Check if this._onSignal is undefined also
  • Loading branch information
guillemcordoba authored Oct 21, 2021
2 parents 7e88f25 + 7469a7a commit 0baef70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conductor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export class Conductor {
this._timeout,
signal => {
this._onActivity()
if (this._onSignal !== null) {
if (this._onSignal) {
this._onSignal(signal)
} else {
console.info('got signal, doing nothing with it: %o', signal)
Expand Down

0 comments on commit 0baef70

Please sign in to comment.