Skip to content

Commit

Permalink
Merge pull request #24 from mathieucarbou/issue-14
Browse files Browse the repository at this point in the history
Rollback #18 (assert failed: tcp_update_rcv_ann_wnd)
  • Loading branch information
mathieucarbou authored Oct 2, 2024
2 parents 4837967 + c3f2188 commit 16c4e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AsyncTCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ static esp_err_t _tcp_write(tcp_pcb * pcb, int8_t closed_slot, const char* data,
static err_t _tcp_recved_api(struct tcpip_api_call_data *api_call_msg){
tcp_api_call_t * msg = (tcp_api_call_t *)api_call_msg;
msg->err = ERR_CONN;
if(msg->closed_slot != INVALID_CLOSED_SLOT && !_closed_slots[msg->closed_slot]) {
if(msg->closed_slot == INVALID_CLOSED_SLOT || !_closed_slots[msg->closed_slot]) {
msg->err = 0;
tcp_recved(msg->pcb, msg->received);
}
Expand Down

0 comments on commit 16c4e71

Please sign in to comment.