Skip to content

Make callbacks from UI thread.#739

Merged
kspearrin merged 1 commit intobitwarden:masterfrom
oldium:fix-callback-thread
Feb 24, 2020
Merged

Make callbacks from UI thread.#739
kspearrin merged 1 commit intobitwarden:masterfrom
oldium:fix-callback-thread

Conversation

@oldium
Copy link

@oldium oldium commented Feb 23, 2020

The code expects to be called form UI thread, but it looks like JavaScript
callbacks are not. Switch to UI thread when invoking a callback.

This is a better fix than #738, because this fixes the whole callback thread issue.

@oldium oldium mentioned this pull request Feb 23, 2020
@oldium
Copy link
Author

oldium commented Feb 23, 2020

Please review the threading also in iOS, I have not checked that (no iOS device).

The code expects to be called form UI thread, but it loks like JavaScript
callbacks are not. Switch to UI thread when invoking a callback.

Signed-off-by: Oldřich Jedlička <oldium.pro@gmail.com>
@kspearrin kspearrin merged commit c2f2a5e into bitwarden:master Feb 24, 2020
@oldium oldium deleted the fix-callback-thread branch February 24, 2020 18:36
vvolkgang pushed a commit that referenced this pull request Jun 20, 2024
vvolkgang pushed a commit that referenced this pull request Jun 20, 2024
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