refactor: codebase review cleanup
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user