diff --git a/Source/WebSocket.swift b/Source/WebSocket.swift index 3759966..905c9b3 100644 --- a/Source/WebSocket.swift +++ b/Source/WebSocket.swift @@ -759,8 +759,10 @@ private class InnerWebSocket: Hashable { } case .closeConn: if let error = finalError { - self.event.error(error) - self.eventDelegate?.webSocketError(error as NSError) + fire { + self.event.error(error) + self.eventDelegate?.webSocketError(error as NSError) + } } privateReadyState = .closed if rd != nil {