=== modified file 'src/com/goldencode/p2j/ui/client/driver/web/res/p2j.socket.js' --- src/com/goldencode/p2j/ui/client/driver/web/res/p2j.socket.js 2016-04-14 07:40:31 +0000 +++ src/com/goldencode/p2j/ui/client/driver/web/res/p2j.socket.js 2016-04-20 21:11:10 +0000 @@ -48,9 +48,12 @@ ** or to refresh the web application page, added named message types constants, ** fixed TypedArray.slice is unsupported by IE. ** 017 HC 20160406 Overhaul of window-activation logic. -** 018 SBI 20160414 Added MSG_OPEN_URL to open the target page in the browser. Fixed the window +** 018 SBI 20160420 Added MSG_OPEN_URL to open the target page in the browser. Fixed the window ** location coordinates to have 32 bits size if they are send with -** MSG_SET_WINDOW_LOC and MSG_WINDOW_RESIZED. +** MSG_SET_WINDOW_LOC and MSG_WINDOW_RESIZED. Fixed ControlTimer to start it +** again only if the timer has been done. +** +* */ "use strict"; @@ -1972,11 +1975,11 @@ */ function start() { + if (running) + { + return; + } reset((new Date()).getTime()); - if (running) - { - return; - } timer = setInterval(check, period); running = true; } @@ -2151,8 +2154,8 @@ // try to reconnect within watchdog timeout if it is failed, then // the websocket server is down connectivityTimer.start(); - exitTheApplication = true; } + exitTheApplication = true; } }; }