brocaar / chirpstack-network-server

ChirpStack Network Server is an open-source LoRaWAN network-server.
https://www.chirpstack.io
MIT License
1.48k stars 545 forks source link

Release device and gateway locks if nothing to send for class C #604

Closed conny-andersson closed 8 months ago

conny-andersson commented 1 year ago

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.