diff options
Diffstat (limited to 'templates/longpolling.julius')
-rw-r--r-- | templates/longpolling.julius | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/longpolling.julius b/templates/longpolling.julius index d34d5b47d..520699cd7 100644 --- a/templates/longpolling.julius +++ b/templates/longpolling.julius @@ -1,8 +1,9 @@ // longpolling for #{ident} function poller#{ident}() { - longpoll('@{gethtml}', '#{ident}', function() { - setTimeout(poller#{ident}, #{delay}); - }); + longpoll('@{gethtml}', '#{ident}' + , function() { setTimeout(poller#{ident}, #{delay}); } + , function() { webapp_disconnected(); } + ); } $(function() { setTimeout(poller#{ident}, #{startdelay}); |