         //            [strongSelf _writeDataToServer:data];
         //            });
         
-        dispatch_semaphore_signal(queueLock)
+        dispatch_semaphore_signal(sendQueueLock)
     }
 }
 

    
    private var chatConnection : GCDAsyncSocket?
    private var connectionQueue : dispatch_queue_t
    private let queueLock : dispatch_semaphore_t
    private var sendQueue : [AnyObject]
    private var status : ChatConnectionStatus
    private var lastConnectAttempt : NSDate?

            return
        }
        
        dispatch_semaphore_wait(sendQueueLock, DISPATCH_TIME_FOREVER)
        
        //        NSData *data = nil;
        //        @synchronized( _sendQueue ) {
