mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
Fix race condition in test-dgram-pingpong
This commit is contained in:
@@ -71,8 +71,7 @@ function pingPongTest(port, host) {
|
||||
client.send(buf, 0, buf.length, port, 'localhost');
|
||||
} else {
|
||||
sent_final_ping = true;
|
||||
client.send(buf, 0, buf.length, port, 'localhost');
|
||||
process.nextTick(function() {
|
||||
client.send(buf, 0, buf.length, port, 'localhost', function() {
|
||||
client.close();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user