remote-saving: mistake...
This commit is contained in:
parent
3eb88efa24
commit
9a997c1a41
1 changed files with 2 additions and 1 deletions
|
|
@ -116,11 +116,12 @@ module.exports = {
|
|||
|
||||
sessionSetPath: function(data, clientId) {
|
||||
|
||||
ipc.clients[clientId].sessionPath = ''
|
||||
|
||||
if (!data.path || settings.read('remoteSaving') && !settings.read('remoteSaving').test(ipc.clients[clientId].address)) {
|
||||
return
|
||||
}
|
||||
|
||||
ipc.clients[clientId].sessionPath = ''
|
||||
fs.lstat(data.path, (err, stats)=>{
|
||||
if (err || !stats.isFile()) return
|
||||
ipc.clients[clientId].sessionPath = data.path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue