Skip to content

Commit

Permalink
guard for fn
Browse files Browse the repository at this point in the history
  • Loading branch information
krisselden committed Feb 4, 2016
1 parent 71c6c94 commit 19a84ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/debugging-protocol-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ class Domain {
this._client.removeListener(prefixed, listener);
}
listener = v;
this._client.on(prefixed, v);
if (v) {
this._client.on(prefixed, v);
}
}
});
});
Expand Down

0 comments on commit 19a84ad

Please sign in to comment.