Fixed issue with webclient sessions hanging on disconnect.

This commit is contained in:
Kelketek 2013-05-18 21:20:54 -05:00
parent 93d0db8489
commit bda5d88c24
2 changed files with 9 additions and 6 deletions

View file

@ -292,11 +292,7 @@ $(document).ready(function(){
});
// Callback function - called when the browser window resizes
$(window).resize(function() {
webclient_set_sizes();
});
$(window).resize(webclient_set_sizes);
// Callback function - called when page is closed or moved away from.
$(window).unload(function() {
webclient_close();
});
$(window).bind("beforeunload", webclient_close);