Commit 85ccfed2 authored by rswindell's avatar rswindell

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
......@@ -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)) {
......
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