mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-06-25 17:31:33 +02:00
feat(modem): Delete CMUX internal implementation even if terminal exit fails
This commit is contained in:
@ -156,12 +156,10 @@ bool DTE::exit_cmux()
|
|||||||
if (!cmux_term) {
|
if (!cmux_term) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!cmux_term->deinit()) {
|
const bool success = cmux_term->deinit();
|
||||||
return false;
|
|
||||||
}
|
|
||||||
exit_cmux_internal();
|
exit_cmux_internal();
|
||||||
cmux_term.reset();
|
cmux_term.reset();
|
||||||
return true;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DTE::exit_cmux_internal()
|
void DTE::exit_cmux_internal()
|
||||||
|
Reference in New Issue
Block a user