Commit 328c524c authored by Jake Read's avatar Jake Read
Browse files

try fixing deviceserver crash for greg

parent 4439d124
......@@ -81,7 +81,9 @@ wss.on('connection',function(ws) {
if (cancel) {
console.log('cancel')
ws.send('cancel')
fs.close(file)
fs.close(file, (err) => {
console.log("err at close file", err)
})
}
//
// continue
......@@ -100,7 +102,9 @@ wss.on('connection',function(ws) {
else {
console.log('done')
ws.send('done')
fs.close(file)
fs.close(file, (err) => {
console.log("err at close file", err)
})
}
}
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment