Skip to content

Commit 28cf1cc

Browse files
SERDUNclaude
andcommitted
chore: add comment for closeCode guard in keepalive loop
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 75f3c6d commit 28cf1cc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/webtrit_signaling/lib/src/webtrit_signaling_client.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ class WebtritSignalingClient {
309309
final elapsed = await _executeKeepaliveTransaction(defaultExecuteTransactionTimeoutDuration);
310310
_logger.finest('handshake keepalive latency: $elapsed');
311311

312+
// Stop the keepalive loop if the socket was closed between send and response.
312313
if (_wsc.closeCode == null) {
313314
_startKeepaliveTimer();
314315
}

0 commit comments

Comments
 (0)