Skip to content

Commit

Permalink
fix(timer): add async argument to restart method (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
l-404-l authored May 2, 2024
1 parent 75f4ecb commit fcf198b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imports/timer/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ function timer:isPaused()
return self.private.paused
end

function timer:restart()
function timer:restart(async)
self:forceEnd(false)
Wait(0)
self.private.currentTimeLeft = self.private.initialTime
self.private.startTime = 0
self:start()
self:start(async)
end

function timer:getTimeLeft(format)
Expand Down

0 comments on commit fcf198b

Please sign in to comment.