Check if a queue is present. Return an error otherwise

pull/8569/head
Marc Emmers 2018-10-29 13:56:45 +01:00
parent 2de83fb286
commit d55f6a9915
1 changed files with 4 additions and 0 deletions

View File

@ -136,6 +136,10 @@ nsapi_error_t CellularConnectionFSM::init()
}
_at_queue = _cellularDevice->get_queue();
if (!_at_queue) {
stop();
return NSAPI_ERROR_NO_MEMORY;
}
_at_queue->chain(&_queue);
_retry_count = 0;