fix for no args acks

This commit is contained in:
Erik 2015-03-22 11:05:56 -04:00
parent dee508c0f7
commit 8fa8944672

View File

@ -260,9 +260,9 @@ public class SocketIOClient: NSObject, SocketEngineClient {
} }
// If the server wants to know that the client received data // 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 dispatch_async(self.emitQueue) {[weak self] in
if self == nil || !self!.connected || args == nil { if self == nil || !self!.connected {
return return
} }