You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…turns (#3193)
* Ensure the appState is loaded only once and GetAppState always returns
fixes#3192
* Interlocked.Exchange with func
Using Interlocked.Exchange to prevent dead lock and Threading issues.
Co-authored-by: Tomáš Filip <tomas.filip@meac.cz>
Describe the bug
Sometimes upon restoring AppState, the state would be null, because GetAppState can be called before app gets loaded and thus before suspension driver loaded app state.
https://user-images.githubusercontent.com/34779382/155291750-546fa71a-8897-4a30-9e8a-7205d1ace8a4.mp4
Expected behaviour
GetAppState should always return object, not null.
The text was updated successfully, but these errors were encountered: