Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
b75114da
Commit
b75114da
authored
2 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Add comment about race condition
Fixed typo in another comment
parent
14940b8a
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Pipeline
#3005
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/logout.cpp
+2
-2
2 additions, 2 deletions
src/sbbs3/logout.cpp
with
2 additions
and
2 deletions
src/sbbs3/logout.cpp
+
2
−
2
View file @
b75114da
...
...
@@ -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 w
h
en through logon()/getmsgptrs() first
if
(
sys_status
&
SS_USERON
)
{
// Insures the useron actually wen
t
through logon()/getmsgptrs() first
putmsgptrs
();
}
if
(
!
REALSYSOP
)
...
...
This diff is collapsed.
Click to expand it.
Keyop Troy
@Keyop
mentioned in issue
#401 (closed)
·
2 years ago
mentioned in issue
#401 (closed)
mentioned in issue #401
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment