Skip to content

Commit

Permalink
Delete CMUX internal implementation even if terminal exit fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant2000 authored Sep 18, 2024
1 parent 6705bca commit 79eee34
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/esp_modem/src/esp_modem_dte.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,10 @@ bool DTE::exit_cmux()
if (!cmux_term) {
return false;
}
if (!cmux_term->deinit()) {
return false;
}
const bool success = cmux_term->deinit();
exit_cmux_internal();
cmux_term.reset();
return true;
return success;
}

void DTE::exit_cmux_internal()
Expand Down

0 comments on commit 79eee34

Please sign in to comment.