mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-12 05:13:09 +08:00
use await to guarantee the calling order
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
parent
230eb76532
commit
731ecfda64
@ -203,11 +203,11 @@ class FfiModel with ChangeNotifier {
|
|||||||
}, sessionId, peerId);
|
}, sessionId, peerId);
|
||||||
updatePrivacyMode(data.updatePrivacyMode, sessionId, peerId);
|
updatePrivacyMode(data.updatePrivacyMode, sessionId, peerId);
|
||||||
setConnectionType(peerId, data.secure, data.direct);
|
setConnectionType(peerId, data.secure, data.direct);
|
||||||
handlePeerInfo(data.peerInfo, peerId);
|
await handlePeerInfo(data.peerInfo, peerId);
|
||||||
for (var element in data.cursorDataList) {
|
for (var element in data.cursorDataList) {
|
||||||
handleCursorData(element);
|
await handleCursorData(element);
|
||||||
}
|
}
|
||||||
handleCursorId(data.lastCursorId);
|
await handleCursorId(data.lastCursorId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo: why called by two position
|
// todo: why called by two position
|
||||||
@ -1802,7 +1802,7 @@ class FFI {
|
|||||||
debugPrint('Unreachable, the cached data cannot be decoded.');
|
debugPrint('Unreachable, the cached data cannot be decoded.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ffiModel.handleCachedPeerData(data, id);
|
await ffiModel.handleCachedPeerData(data, id);
|
||||||
await bind.sessionRefresh(sessionId: sessionId);
|
await bind.sessionRefresh(sessionId: sessionId);
|
||||||
});
|
});
|
||||||
isToNewWindowNotified.value = true;
|
isToNewWindowNotified.value = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user