refactor: codebase review cleanup

This commit is contained in:
edde746
2026-04-25 03:16:11 +02:00
parent 1949c22b85
commit d0a93d57dd
83 changed files with 763 additions and 419 deletions
@@ -242,7 +242,9 @@ class WatchTogetherPeerService with KeepaliveMixin {
appLogger.w('WatchTogether: Pong timeout — closing WebSocket');
try {
_channel?.sink.close();
} catch (_) {}
} catch (e) {
appLogger.d('WatchTogether: pong-timeout close ignored', error: e);
}
}
/// Send a raw JSON map to the relay.
@@ -435,7 +437,9 @@ class WatchTogetherPeerService with KeepaliveMixin {
try {
await _channel?.sink.close();
} catch (_) {}
} catch (e) {
appLogger.d('WatchTogether: channel close ignored', error: e);
}
_channel = null;
_connectedPeers.clear();