Skip to content

Commit

Permalink
Automatically remove update-secret-ok event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
cressie176 committed Feb 22, 2024
1 parent a06ef44 commit 4d25951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ class Connection extends EventEmitter {
newSecret,
reason
});
this.on('update-secret-ok', cb);
this.once('update-secret-ok', cb);
}

// ===
Expand Down

0 comments on commit 4d25951

Please sign in to comment.