Skip to content

Commit

Permalink
fix: Suppress warnings while cancelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Quenty committed Feb 18, 2023
1 parent 06981a8 commit 2f49c88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/textserviceutils/src/Shared/TextServiceUtils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ local function startQueueProcess()
local ok = promiseTimeoutOrDone:Yield()

-- Cancel our delayed task
task.cancel(pendingTask)
pcall(function()
task.cancel(pendingTask)
end)

if not ok then
warn("[TextServiceUtils] - Requeuing entry")
Expand Down

0 comments on commit 2f49c88

Please sign in to comment.