summaryrefslogtreecommitdiff
path: root/test/parallel/test-dgram-pingpong.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-dgram-pingpong.js')
-rw-r--r--test/parallel/test-dgram-pingpong.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/parallel/test-dgram-pingpong.js b/test/parallel/test-dgram-pingpong.js
index 29ab92757b..883085a9cd 100644
--- a/test/parallel/test-dgram-pingpong.js
+++ b/test/parallel/test-dgram-pingpong.js
@@ -11,7 +11,6 @@ function pingPongTest(port, host) {
var callbacks = 0;
var N = 500;
var count = 0;
- var sent_final_ping = false;
var server = dgram.createSocket('udp4', function(msg, rinfo) {
if (debug) console.log('server got: ' + msg +
@@ -48,7 +47,6 @@ function pingPongTest(port, host) {
if (count < N) {
client.send(buf, 0, buf.length, port, 'localhost');
} else {
- sent_final_ping = true;
client.send(buf, 0, buf.length, port, 'localhost', function() {
client.close();
});