allow reconnects after disconnecting

This commit is contained in:
Erik 2016-05-06 10:17:43 -04:00
parent 7e23597351
commit 9747cc4ddc
2 changed files with 1 additions and 3 deletions

View File

@ -191,7 +191,6 @@ public final class SocketIOClient : NSObject, SocketEngineClient, SocketParsable
DefaultSocketLogger.Logger.log("Disconnected: %@", type: logType, args: reason)
status = .Disconnected
reconnects = false
// Make sure the engine is actually dead.
engine?.disconnect(reason)
@ -205,7 +204,6 @@ public final class SocketIOClient : NSObject, SocketEngineClient, SocketParsable
DefaultSocketLogger.Logger.log("Closing socket", type: logType)
reconnects = false
didDisconnect("Disconnect")
}

View File

@ -189,7 +189,7 @@ struct SocketPacket {
// Helper method that looks for placeholders
// If object is a collection it will recurse
// Returns the object if it is not a placeholder string or the corresponding
// Returns the object if it is not a placeholder or the corresponding
// binary data
private func _fillInPlaceholders(object: AnyObject) -> AnyObject {
switch object {