Merge pull request #6677 from jarvte/cellular_fsm_crash_bug

Cellular: fixed null pointer bug in cellular fsm
pull/6349/merge
Martin Kojtal 2018-04-25 08:24:49 +01:00 committed by GitHub
commit d768b6f468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

View File

@ -76,14 +76,7 @@ CellularConnectionFSM::~CellularConnectionFSM()
void CellularConnectionFSM::stop()
{
tr_info("CellularConnectionUtil::stop");
if (_cellularDevice) {
_cellularDevice->close_power();
_cellularDevice->close_network();
_cellularDevice->close_sim();
_power = NULL;
_network = NULL;
_sim = NULL;
}
if (_queue_thread) {
_queue_thread->terminate();
delete _queue_thread;