diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index 556239a7c..4205b6328 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -1056,7 +1056,8 @@ FW_doUpdate(evt) if(typeof WebSocket == "function" && evt && evt.target instanceof WebSocket) { if(evt.type == 'close' && !FW_leaving) { FW_errmsg(errstr, retryTime-100); - FW_pollConn.close(); + if(FW_pollConn) // Race-condition(?) # 112181 + FW_pollConn.close(); FW_pollConn = undefined; setTimeout(FW_longpoll, retryTime); return;