Commit b75114da authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Add comment about race condition

Fixed typo in another comment
parent 14940b8a
Pipeline #3005 passed with stage
in 9 minutes and 44 seconds
......@@ -49,7 +49,7 @@ void sbbs_t::logout()
return;
}
lprintf(LOG_INFO, "logout initiated");
SAFECOPY(lastuseron,useron.alias);
SAFECOPY(lastuseron,useron.alias); // TODO: race condition here
if(!online && getnodedat(cfg.node_num, &node, /* lock: */true) == 0) {
node.status = NODE_LOGOUT;
putnodedat(cfg.node_num, &node);
......@@ -89,7 +89,7 @@ void sbbs_t::logout()
remove(path);
delfiles(cfg.temp_dir,ALLFILES);
if(sys_status&SS_USERON) { // Insures the useron actually when through logon()/getmsgptrs() first
if(sys_status&SS_USERON) { // Insures the useron actually went through logon()/getmsgptrs() first
putmsgptrs();
}
if(!REALSYSOP)
......
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