Skip to content

Commit

Permalink
Explicitly remove transactions from queue on shutdown (#1376)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Jackson <[email protected]>
  • Loading branch information
cdjackson authored Feb 5, 2023
1 parent c1e02c7 commit e649840
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ protected void shutdown() {
isShutdown = true;

// Cancel any queued transactions
for (ZigBeeTransaction transaction : queue) {
while (!queue.isEmpty()) {
ZigBeeTransaction transaction = queue.poll();
if (transaction == null) {
break;
}
transaction.cancel();
}

Expand Down

0 comments on commit e649840

Please sign in to comment.