fix ping module to pass tests

This commit is contained in:
Andrew Kelley 2013-01-27 19:36:22 -05:00 committed by Robin Lambertz
parent b5516a81b3
commit 79e61a4890

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 {