Skip to content

Commit

Permalink
Thread fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyofrancis committed May 22, 2019
1 parent 43e6462 commit d6e5357
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ class DefaultThreadHandler(override val threadName: String): Thread(), ThreadHan
}
if (!isCancelled) {
synchronized(queue) {
if (queueIndex < queue.size) {
queue.removeAt(queueIndex)
}
queue.remove(queueItem!!)
}
}
queueItem?.recycle()
Expand Down

0 comments on commit d6e5357

Please sign in to comment.