If there is nothing to send for a class C device then immediately release the device and gateway locks in order to avoid unnecessary delays.
This can happen if the existing queue item was discarded because of timeout in the getNextDeviceQueueItem loop.
If there is nothing to send for a class C device then immediately release the device and gateway locks in order to avoid unnecessary delays. This can happen if the existing queue item was discarded because of timeout in the getNextDeviceQueueItem loop.