Skip to content
Snippets Groups Projects
Commit e2c5e560 authored by Thomas Buckley-Houston's avatar Thomas Buckley-Houston
Browse files

Ensure HTTP server tabs live no longer than 60s

parent 23702a2b
No related branches found
No related tags found
No related merge requests found
......@@ -186,6 +186,13 @@ export default MixinBase =>
request_id: request_id,
raw_text_mode_type: mode.toLowerCase()
});
// Sometimes tabs fail to load for whatever reason. Make sure they get
// removed to save RAM in long-lived Browsh HTTP servers
setTimeout(() => {
if (this.tabs[native_tab.id]) {
this.removeTab(native_tab.id);
}
}, 60000);
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment