Skip to content
Snippets Groups Projects
Commit 85ccfed2 authored by rswindell's avatar rswindell
Browse files

Close the node.dab on lock/read failures - this causes a re-open later and

allows recovery (e.g. from a shared drive being un/remounted).
parent b3a6f88a
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,8 @@ int sbbs_t::getnodedat(uint number, node_t *node, bool lockit)
if(count==LOOP_NODEDAB) {
errormsg(WHERE,rd==sizeof(node_t) ? ERR_LOCK : ERR_READ,"node.dab",number+1);
close(nodefile);
nodefile=-1;
return(-2);
}
if(count>(LOOP_NODEDAB/2)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment