Cellular: Fix to delete context just once

pull/11090/head
Ari Parkkila 2019-07-23 03:04:24 -07:00
parent 3a96f436ea
commit ac78b5ab16
1 changed files with 1 additions and 2 deletions

View File

@ -741,8 +741,7 @@ void AT_CellularContext::check_and_deactivate_context()
}
if (_new_context_set) {
_at.clear_error();
_at.at_cmd_discard("+CGDCONT", "=", "%d", _cid);
delete_current_context();
}
_at.restore_at_timeout();