save: missing condition on autoreload for simultaneously opened sessions

This commit is contained in:
jean-emmanuel 2019-01-04 12:01:37 +01:00
parent 1b36fa71c0
commit 10b3b465f5

View file

@ -139,7 +139,7 @@ module.exports = {
if (err) throw err
console.log('Session file saved in '+ path)
for (var id in ipc.clients) {
if (id !== clientId) {
if (id !== clientId && ipc.clients[id].sessionPath === path) {
module.exports.sessionOpen({path: path}, id)
}
}