Skip to content

Commit b6af6c1

Browse files
bertmelisserek4
authored andcommitted
reset unacked length on connect
1 parent 1547686 commit b6af6c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ESPAsyncTCP.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ void AsyncClient::_connected(std::shared_ptr<ACErrorTracker>& errorTracker, void
467467
if(_pcb){
468468
_pcb_busy = false;
469469
_rx_last_packet = millis();
470+
_tx_unacked_len = 0;
470471
tcp_setprio(_pcb, TCP_PRIO_MIN);
471472
tcp_recv(_pcb, &_s_recv);
472473
tcp_sent(_pcb, &_s_sent);

0 commit comments

Comments
 (0)