ericz %!s(int64=12) %!d(string=hai) anos
pai
achega
d575fd3748
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      lib/socket.js

+ 2 - 1
lib/socket.js

@@ -83,8 +83,9 @@ Socket.prototype._startWebSocket = function() {
   // socket is open.
   this._socket.onopen = function() {
     util.log('Socket open');
-    if (self._id)
+    if (self._id) {
       self.emit('open');
+    }
   };
 };