Fix naughty.reset_timeout

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-02-07 14:19:12 +01:00
parent 9db539fbf2
commit a4e598d444
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ end
function naughty.reset_timeout(notification, new_timeout) function naughty.reset_timeout(notification, new_timeout)
if notification.timer then notification.timer:stop() end if notification.timer then notification.timer:stop() end
local timeout = timeout or notification.timeout local timeout = new_timeout or notification.timeout
set_timeout(notification, timeout) set_timeout(notification, timeout)
notification.timeout = timeout notification.timeout = timeout