             disconnectStream(nil)
         }
     }
-    //work around for a swift bug. BugID: 17712659
-    func workaroundMethod() {
-        //does nothing, but fixes bug in swift
-    }
     //disconnect the stream object
     private func disconnectStream(error: NSError?) {
         if writeQueue != nil {

            if isFin == 0 && receivedOpcode == OpCode.ContinueFrame.rawValue && response == nil {
                let errCode = CloseCode.ProtocolError.rawValue
                let error = self.errorWithDetail("continue frame before a binary or text frame", code: errCode)
                if let failBlock = self._failureBlock{
                    failBlock(error)
                }
                else{
                    self.delegate!.websocketDidDisconnect(error)
                }
                writeError(errCode)
                return
            }

                    let errCode = CloseCode.ProtocolError.rawValue
                    let error = self.errorWithDetail("second and beyond of fragment message must be a continue frame",
                        code: errCode)
                    if let disconnect = self.disconnectedBlock {
                        disconnect(error)
                    }
                    self.delegate?.websocketDidDisconnect(error)
                    writeError(errCode)
                    return
                }
