Commit 728d75f8 authored by Thomas Urban's avatar Thomas Urban

fixing statistics interval timer preventing application close on demand

parent 4a96825d
...@@ -408,6 +408,8 @@ new Promise( resolve => { ...@@ -408,6 +408,8 @@ new Promise( resolve => {
} }
function cancelClient( client ) { function cancelClient( client ) {
clearInterval( client.statsTimer );
cancelled[client.id] = true; cancelled[client.id] = true;
if ( Object.keys( cancelled ).length >= NumClients ) { if ( Object.keys( cancelled ).length >= NumClients ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment