If a socket action is dispatched asynchronously, SwiftPhoenixClient sometimes crashes on line 463 of Socket.swift when one of the stateChangeCallback arrays is changed asynchronously.
Solution:
This PR takes the same approach that was taken to achieve thread-safe access to the bindingsDel array here.
Issue:
If a socket action is dispatched asynchronously,
SwiftPhoenixClient
sometimes crashes on line 463 ofSocket.swift
when one of thestateChangeCallback
arrays is changed asynchronously.Solution:
This PR takes the same approach that was taken to achieve thread-safe access to the
bindingsDel
array here.