Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! dgram: remove listeners on bind error
  • Loading branch information
addaleax committed Nov 2, 2019
commit f603ff405d7253580436b64b4c0ad2bb2a787e12
3 changes: 1 addition & 2 deletions test/parallel/test-dgram-bind-error-repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ reservePortSocket.bind(() => {
let errors = 0;
newSocket.on('error', common.mustCall(() => {
if (++errors < 20) {
const cb = errors === 20 ? common.mustCall() : common.mustNotCall();
newSocket.bind(port, cb);
newSocket.bind(port, common.mustNotCall());
} else {
newSocket.close();
reservePortSocket.close();
Expand Down