Undo change to the way ripple-lib unsubscribed from ws events.

This commit is contained in:
Stefan Thomas
2013-06-25 20:34:10 +02:00
parent dc290f69ec
commit fa1a4a0307

View File

@@ -158,8 +158,7 @@ Server.prototype.connect = function() {
self._set_state('offline');
// Prevent additional events from this socket
ws.removeAllListeners();
ws.on('error', function() {});
ws.onopen = ws.onerror = ws.onclose = ws.onmessage = function () {};
// Should we be connected?
if (!self._should_connect) return;