Skip to content

Conversation

@salpieiev
Copy link

Fix for:
#1016
#918
#913
#909
#784

nuclearace and others added 3 commits May 28, 2019 09:04
* development:
  update changelog/readme for 15.1
  update changelog
  fix socketio#1178
  expose Starscream WebSocket enableSOCKSProxy option to socket.io-client-swift options
@nuclearace
Copy link
Member

How exactly is this fixing it? I guess not dispatching again to the engineQueue is better, but I'm not seeing how this would fix anything per se.

@nuclearace nuclearace changed the base branch from master to development September 23, 2019 14:08
@salpieiev
Copy link
Author

I can't tell you exact sequence of events right now, but the basic idea is as follows. Method '_connect' is executed on serial 'engineQueue'. 'disconnect' is called at the beginning of '_connect' method and dispatches '_disconnect' to the same 'engineQueue'. So '_disconnect' isn't executed immediately, but is being dispatched for a later execution. After that '_connect' method continues its execution (probably creates some connection-related stuff). When '_connect' returns, previously dispatched '_disconnect' is being executed (and probably kills some connection-related stuff created by '_connect'). So calling '_disconnect' instead of 'disconnect' ensures proper ordering of events

damian-kolakowski added a commit to damian-kolakowski/socket.io-client-swift that referenced this pull request Oct 16, 2019
@nuclearace nuclearace merged commit 091797f into socketio:development Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants