projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix initial display on Hall. Understand the 'double close event bug'
[vchess.git]
/
server
/
sockets.js
diff --git
a/server/sockets.js
b/server/sockets.js
index
175fe7e
..
7f0d14e
100644
(file)
--- a/
server/sockets.js
+++ b/
server/sockets.js
@@
-201,9
+201,7
@@
module.exports = function(wss) {
}
};
const closeListener = () => {
}
};
const closeListener = () => {
- // TODO: BUG: this is triggered twice when anonymous reloads page
- // (+ registered users, everyone in Hall).
- // For tab or browser closing:
+ // For browser or tab closing (including page reload):
doDisconnect();
};
// Update clients object: add new connexion
doDisconnect();
};
// Update clients object: add new connexion