You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 18, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: topl-service/src/main/java/io/matthewnelson/topl_service/service/components/actions/ServiceActionProcessor.kt
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -183,10 +183,10 @@ internal class ServiceActionProcessor(private val torService: BaseService): Serv
183
183
184
184
privatefunclearActionQueue() {
185
185
synchronized(actionQueueLock) {
186
-
if (!actionQueue.isNullOrEmpty()) {
187
-
actionQueue.clear()
188
-
broadcastLogger.debug("Queue cleared")
189
-
}
186
+
if (actionQueue.isNullOrEmpty()) return
187
+
188
+
actionQueue.clear()
189
+
broadcastLogger.debug("Queue cleared")
190
190
}
191
191
}
192
192
@@ -206,20 +206,20 @@ internal class ServiceActionProcessor(private val torService: BaseService): Serv
0 commit comments