Skip to content

Commit d768b6f

Browse files
authored
Merge pull request #6677 from jarvte/cellular_fsm_crash_bug
Cellular: fixed null pointer bug in cellular fsm
2 parents 2e4966a + 6a2eefb commit d768b6f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

features/cellular/easy_cellular/CellularConnectionFSM.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,7 @@ CellularConnectionFSM::~CellularConnectionFSM()
7676
void CellularConnectionFSM::stop()
7777
{
7878
tr_info("CellularConnectionUtil::stop");
79-
if (_cellularDevice) {
80-
_cellularDevice->close_power();
81-
_cellularDevice->close_network();
82-
_cellularDevice->close_sim();
83-
_power = NULL;
84-
_network = NULL;
85-
_sim = NULL;
86-
}
79+
8780
if (_queue_thread) {
8881
_queue_thread->terminate();
8982
delete _queue_thread;

0 commit comments

Comments
 (0)