From 8fa8944672eabe492cb15846f7281a87099bbff4 Mon Sep 17 00:00:00 2001 From: Erik Date: Sun, 22 Mar 2015 11:05:56 -0400 Subject: [PATCH] fix for no args acks --- SwiftIO/SocketIOClient.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SwiftIO/SocketIOClient.swift b/SwiftIO/SocketIOClient.swift index 0f13a3c..107131d 100644 --- a/SwiftIO/SocketIOClient.swift +++ b/SwiftIO/SocketIOClient.swift @@ -260,9 +260,9 @@ public class SocketIOClient: NSObject, SocketEngineClient { } // If the server wants to know that the client received data - func emitAck(ack:Int, withData args:[AnyObject]?) { + func emitAck(ack:Int, withData args:[AnyObject]) { dispatch_async(self.emitQueue) {[weak self] in - if self == nil || !self!.connected || args == nil { + if self == nil || !self!.connected { return }