diff --git a/src/sbbs3/websrvr.c b/src/sbbs3/websrvr.c index 976f7ded5824abe0b3f08ea54ec60308cf6dfb48..f9d14cd762db2421e69ccb07a67722ba5b16d95c 100644 --- a/src/sbbs3/websrvr.c +++ b/src/sbbs3/websrvr.c @@ -2888,15 +2888,13 @@ void http_logging_thread(void* arg) break; pthread_mutex_lock(&log_mutex); - ld=listRemoveNode(&log_list, FIRST_NODE); + ld=listShiftNode(&log_list); pthread_mutex_unlock(&log_mutex); if(ld==NULL) { lprintf(LOG_ERR,"%04d http logging thread received NULL linked list log entry" ,server_socket); continue; } - if(ld==NULL) - continue; SAFECOPY(newfilename,base); strftime(strchr(newfilename,0),15,"%Y-%m-%d.log",&ld->completed); if(strcmp(newfilename,filename)) {