always call platformFFI.nextRgba no matter what to avoid dead lock because of unknown reason

This commit is contained in:
rustdesk 2024-06-12 02:34:15 +08:00
parent 47143318ba
commit 50aa5880de

View File

@ -2504,12 +2504,15 @@ class FFI {
// Fetch the image buffer from rust codes.
final sz = platformFFI.getRgbaSize(sessionId, display);
if (sz == 0) {
platformFFI.nextRgba(sessionId, display);
return;
}
final rgba = platformFFI.getRgba(sessionId, display, sz);
if (rgba != null) {
onEvent2UIRgba();
imageModel.onRgba(display, rgba);
} else {
platformFFI.nextRgba(sessionId, display);
}
}
} else if (message is EventToUI_Texture) {