mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Fix tooltips crashing on thread cancellation edge cases (#727)
This commit is contained in:
parent
80eb14f9da
commit
28d48a76e3
1 changed files with 2 additions and 2 deletions
|
|
@ -175,7 +175,7 @@ end
|
||||||
|
|
||||||
function Trigger:willUnmount()
|
function Trigger:willUnmount()
|
||||||
if self.showDelayThread then
|
if self.showDelayThread then
|
||||||
task.cancel(self.showDelayThread)
|
pcall(task.cancel, self.showDelayThread)
|
||||||
end
|
end
|
||||||
if self.destroy then
|
if self.destroy then
|
||||||
self.destroy()
|
self.destroy()
|
||||||
|
|
@ -225,7 +225,7 @@ function Trigger:managePopup()
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
if self.showDelayThread then
|
if self.showDelayThread then
|
||||||
task.cancel(self.showDelayThread)
|
pcall(task.cancel, self.showDelayThread)
|
||||||
self.showDelayThread = nil
|
self.showDelayThread = nil
|
||||||
end
|
end
|
||||||
self.props.context.removeTip(self.id)
|
self.props.context.removeTip(self.id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue