mirror of https://github.com/ARMmbed/mbed-os.git
Cellular: fixed null pointer bug.
Null pointer could have been called after stop() in cellular state machine.pull/6677/head
parent
15cac12f7e
commit
6a2eefba9c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue