Skip to content
Snippets Groups Projects
Commit 328c524c authored by Jake Read's avatar Jake Read
Browse files

try fixing deviceserver crash for greg

parent 4439d124
No related branches found
No related tags found
No related merge requests found
......@@ -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)
})
}
}
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment