Skip to content

Commit

Permalink
fix(zniffer): possible error when zniffer is disabled
Browse files Browse the repository at this point in the history
Fixes #3729
  • Loading branch information
robertsLando committed May 30, 2024
1 parent 1c36405 commit 6c42bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/lib/ZnifferManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class ZnifferManager extends TypedEventEmitter<ZnifferManagerEven
private restartTimeout: NodeJS.Timeout

get started() {
return this.zniffer.active
return !!this.zniffer?.active
}

constructor(config: ZnifferConfig, socket: SocketServer) {
Expand Down

0 comments on commit 6c42bf8

Please sign in to comment.