Reconnect Android VPN WebSocket after send rejection

This commit is contained in:
2026-05-15 12:43:26 +03:00
parent 5b9bdc2003
commit d8c1632631
2 changed files with 8 additions and 2 deletions
@@ -139,6 +139,12 @@ final class VpnPacketWebSocketRelay {
boolean queued = socket.send(ByteString.of(payload));
if (!queued) {
lastError = "websocket send queue rejected batch";
synchronized (lock) {
if (socket == webSocket) {
reconnectAfterMs = 0;
closeLocked();
}
}
}
return queued;
}