heroiclabs / nakama-unity

Unity client for Nakama server.
https://heroiclabs.com/docs/unity-client-guide
Other
407 stars 75 forks source link

only update coroutine task if it has not been transitioned already #148

Closed lugehorsam closed 1 year ago

lugehorsam commented 1 year ago

We use a tcs to handle the translation of a Unity Coroutine to a Task.

We shouldn't cancel, complete or set an exception on the tcs if it has already been transitioned. This can happen, pretty easily actually if an exception occurs from the network and then the user tries to cancel it the request, or vice versa.