Merge pull request #2724 from necauqua/patch-2
Add forgotten nil-check to `notification.reset_timeout`
This commit is contained in:
commit
d8687dc251
|
@ -266,7 +266,7 @@ function notification:reset_timeout(new_timeout)
|
||||||
|
|
||||||
self.timeout = new_timeout or self.timeout
|
self.timeout = new_timeout or self.timeout
|
||||||
|
|
||||||
if not self.timer.started then
|
if self.timer and not self.timer.started then
|
||||||
self.timer:start()
|
self.timer:start()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue