in reply to Re^4: PSGI, Plack, Twiggy, AnyEvent and SockJS... I need help
in thread PSGI, Plack, Twiggy, AnyEvent and SockJS... I need help
You need to mention the timer variable $w inside the subroutine to keep it alive.
Either move it into a global variable or just mention it in the subroutine so it closes over the value. Even better would be to clean up the timer based on some condition.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: PSGI, Plack, Twiggy, AnyEvent and SockJS... I need help
by xtpu2 (Acolyte) on Apr 09, 2014 at 17:05 UTC | |
by Corion (Patriarch) on Apr 09, 2014 at 17:27 UTC | |
by xtpu2 (Acolyte) on Apr 09, 2014 at 18:56 UTC | |
by Corion (Patriarch) on Apr 09, 2014 at 20:04 UTC |