Merge "Add null check to avoid sigsegv on shutdown"
This commit is contained in:
commit
ee99c426c5
1 changed files with 3 additions and 2 deletions
|
@ -74,10 +74,11 @@ void MsgTask::destroy() {
|
|||
}
|
||||
|
||||
void MsgTask::sendMsg(const LocMsg* msg) const {
|
||||
if (msg) {
|
||||
if (msg && this) {
|
||||
msg_q_snd((void*)mQ, (void*)msg, LocMsgDestroy);
|
||||
} else {
|
||||
LOC_LOGE("%s: msg is NULL", __func__);
|
||||
LOC_LOGE("%s: msg is %p and this is %p",
|
||||
__func__, msg, this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue