Skip to content

Commit 6f3eebc

Browse files
author
Teppo Järvelin
committed
Fixed possible crash and removed trace from greentea.
1 parent ea9869e commit 6f3eebc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

features/cellular/TESTS/socket/udp/template_mbed_app.json.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"ppp-cell-iface.apn-lookup": false,
3232
"cellular.use-apn-lookup": false,
3333
"target.features_add": ["LWIP", "COMMON_PAL"],
34-
"mbed-trace.enable": true,
34+
"mbed-trace.enable": false,
3535
"lwip.ipv4-enabled": true,
3636
"lwip.ipv6-enabled": true,
3737
"lwip.tcp-enabled": false,

features/cellular/easy_cellular/CellularConnectionFSM.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ CellularConnectionFSM::~CellularConnectionFSM()
7575
void CellularConnectionFSM::stop()
7676
{
7777
tr_info("CellularConnectionUtil::stop");
78-
_cellularDevice->close_power();
79-
_cellularDevice->close_network();
78+
if (_cellularDevice) {
79+
_cellularDevice->close_power();
80+
_cellularDevice->close_network();
81+
}
8082
if (_queue_thread) {
8183
_queue_thread->terminate();
8284
delete _queue_thread;

0 commit comments

Comments
 (0)