Skip to content
Snippets Groups Projects
Commit a4f032b8 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix-up node status when node status is in-use, but no socket active

This is a situation we can auto-correct and log a message when we do.
parent 913567c0
No related branches found
No related tags found
No related merge requests found
Pipeline #7426 passed
......@@ -5738,6 +5738,19 @@ NO_SSH:
sbbs->putnodedat(node_num, &node);
break;
}
switch(node.status) {
case NODE_LOGON:
case NODE_NEWUSER:
case NODE_INUSE:
case NODE_QUIET:
if(node_socket[node_num - 1] != INVALID_SOCKET)
break;
lprintf(LOG_CRIT, "%04d !Node %d status is %d, but the node socket is invalid, changing to WFC"
,client_socket, node_num, node.status);
node.status = NODE_WFC;
sbbs->putnodedat(node_num, &node);
continue;
}
sbbs->unlocknodedat(node_num);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment