projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
getmx() now uses our array class
[citadel.git]
/
citadel
/
modules
/
listdeliver
/
serv_listdeliver.c
diff --git
a/citadel/modules/listdeliver/serv_listdeliver.c
b/citadel/modules/listdeliver/serv_listdeliver.c
index 4ceb75a657d8824be0e2ff83de526471d4c4ec7a..29c1c5c82e737a78e9be648b49539db7e480a735 100644
(file)
--- a/
citadel/modules/listdeliver/serv_listdeliver.c
+++ b/
citadel/modules/listdeliver/serv_listdeliver.c
@@
-161,6
+161,7
@@
void listdeliver_sweep_room(char *roomname) {
syslog(LOG_DEBUG, "listdeliver: new lastsent is %ld", ld.msgnum);
// Update this room's netconfig with the updated lastsent
syslog(LOG_DEBUG, "listdeliver: new lastsent is %ld", ld.msgnum);
// Update this room's netconfig with the updated lastsent
+ begin_critical_section(S_NETCONFIGS);
netconfig = LoadRoomNetConfigFile(CC->room.QRnumber);
if (!netconfig) {
netconfig = strdup("");
netconfig = LoadRoomNetConfigFile(CC->room.QRnumber);
if (!netconfig) {
netconfig = strdup("");
@@
-181,6
+182,7
@@
void listdeliver_sweep_room(char *roomname) {
// Write the new netconfig back to disk
SaveRoomNetConfigFile(CC->room.QRnumber, newnetconfig);
// Write the new netconfig back to disk
SaveRoomNetConfigFile(CC->room.QRnumber, newnetconfig);
+ end_critical_section(S_NETCONFIGS);
free(newnetconfig); // this was the new netconfig, free it because we're done with it
}
}
free(newnetconfig); // this was the new netconfig, free it because we're done with it
}
}