Permalink
Browse files

[minor] When using dgram, respond in next tick

  • Loading branch information...
mmalecki committed Mar 23, 2013
1 parent 12905f5 commit 179792ede1f2a28f9fc222d95ce8e91bf7221fe7
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/godot/net/client.js
View
@@ -168,7 +168,7 @@ Client.prototype.connect = function (port, host, callback) {
else if (this.type === 'udp') {
this.socket = dgram.createSocket('udp4');
if (callback) {
- callback();
+ process.nextTick(callback);
}
}
else if (this.type === 'unix') {

0 comments on commit 179792e

Please sign in to comment.