Skip to content

Commit

Permalink
Robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
copy committed Jan 1, 2021
1 parent 3be6e8a commit c0fd705
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/browser/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@
var last_tick = 0;
var running_time = 0;
var last_instr_counter = 0;
var interval;
var interval = null;
var os_uses_mouse = false;
var total_instructions = 0;

Expand Down Expand Up @@ -942,7 +942,10 @@
emulator.add_listener("emulator-stopped", function()
{
update_info();
clearInterval(interval);
if(interval === null)
{
clearInterval(interval);
}
});

var stats_9p = {
Expand Down

0 comments on commit c0fd705

Please sign in to comment.