5.4.2: ios 186, android 166, desktop 20

This commit is contained in:
Evgeny Poberezkin
2023-12-27 22:24:21 +00:00
parent e3a69b12ba
commit 51bf2f413c
3 changed files with 39 additions and 37 deletions
+3 -1
View File
@@ -1742,7 +1742,9 @@ func processReceivedMsg(_ res: ChatResponse) async {
// This delay is needed to cancel the session that fails on network failure,
// e.g. when user did not grant permission to access local network yet.
if let sess = m.remoteCtrlSession {
m.remoteCtrlSession = nil
await MainActor.run {
m.remoteCtrlSession = nil
}
if case .connected = sess.sessionState {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
switchToLocalSession()