pusher / pusher-websocket-dotnet

Pusher Channels Client Library for .NET
MIT License
112 stars 114 forks source link

Fix crash on Pusher.DisconnectAsync() when used with Unity 2021 Game Engine on game consoles #149

Closed szabolcsBarabas closed 7 months ago

szabolcsBarabas commented 8 months ago

Description

While developing for game consoles using Unity 2021.3.33f1 and code compiled with il2cpp we encountered a strange crash. This crash could be reproduced also on development builds (The normal behavior is for exception to be logged on development build, not crashing).

The crash resulted no useful crash dump and no useful logs.

We narrowed it down to the Pusher.DisconnectAsync().

These changes fixed the issue.

CHANGELOG