Skip to content

Commit 8881da9

Browse files
author
Seppo Takalo
authored
Merge pull request #11090 from AriParkkila/cell-delete-context
Cellular: Fix to delete context just once
2 parents 0b8ae1b + ac78b5a commit 8881da9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

features/cellular/framework/AT/AT_CellularContext.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,7 @@ void AT_CellularContext::check_and_deactivate_context()
741741
}
742742

743743
if (_new_context_set) {
744-
_at.clear_error();
745-
_at.at_cmd_discard("+CGDCONT", "=", "%d", _cid);
744+
delete_current_context();
746745
}
747746

748747
_at.restore_at_timeout();

0 commit comments

Comments
 (0)