Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Fix close error dispatching on incorrect queue #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Source/WebSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down