ericz пре 12 година
родитељ
комит
d575fd3748
1 измењених фајлова са 2 додато и 1 уклоњено
  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');
+    }
   };
 };