tidwall / SwiftWebSocket

Fast Websockets in Swift for iOS and OSX
MIT License
1.53k stars 246 forks source link

Fix close error dispatching on incorrect queue #100

Open mjarvis opened 7 years ago

mjarvis commented 7 years ago

self.event.error was being dispatched on the websocket's queue, when it should be dispatched on the queue specified by the library user. Wrapping this in a fire { } call like other events resolves the issue by correctly using the specified queue.

gaming-hacker commented 6 years ago

i merged this and so far no issues