Skip to content

Commit 9747cc4

Browse files
committed
allow reconnects after disconnecting
1 parent 7e23597 commit 9747cc4

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Source/SocketIOClient.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ public final class SocketIOClient : NSObject, SocketEngineClient, SocketParsable
191191
DefaultSocketLogger.Logger.log("Disconnected: %@", type: logType, args: reason)
192192

193193
status = .Disconnected
194-
reconnects = false
195194

196195
// Make sure the engine is actually dead.
197196
engine?.disconnect(reason)
@@ -205,7 +204,6 @@ public final class SocketIOClient : NSObject, SocketEngineClient, SocketParsable
205204

206205
DefaultSocketLogger.Logger.log("Closing socket", type: logType)
207206

208-
reconnects = false
209207
didDisconnect("Disconnect")
210208
}
211209

Source/SocketPacket.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ struct SocketPacket {
189189

190190
// Helper method that looks for placeholders
191191
// If object is a collection it will recurse
192-
// Returns the object if it is not a placeholder string or the corresponding
192+
// Returns the object if it is not a placeholder or the corresponding
193193
// binary data
194194
private func _fillInPlaceholders(object: AnyObject) -> AnyObject {
195195
switch object {

0 commit comments

Comments
 (0)