fix ping module to pass tests

This commit is contained in:
Andrew Kelley 2013-01-27 19:36:22 -05:00
parent efe2e7f775
commit e59ac0f76d

View file

@ -8,7 +8,7 @@ function ping(options, cb) {
var port = options.port || 25565;
var client = new Client();
client.on(0xff, function(packet) {
client.once(0xff, function(packet) {
var parts = packet.reason.split('\u0000');
var results;
try {