- /*
- * if (citthread_mutex_trylock (&smtp_send_lock)) {
- * CtdlLogPrintf(CTDL_DEBUG, "SMTP queue run already in progress\n");
- * }
- * else {
- * CtdlThreadCreate("SMTP Send", CTDLTHREAD_BIGSTACK, smtp_do_queue, NULL);
- * }
- */
-
- static int queue_running = 0; /* The mutex locking isn't working. Gotta do this. */
- if (!queue_running) {
- queue_running = 1;
- smtp_do_queue();
- queue_running = 0;
+ if (citthread_mutex_trylock (&smtp_send_lock)) {
+ CtdlLogPrintf(CTDL_DEBUG, "SMTP queue run already in progress\n");
+ }
+ else {
+ CtdlThreadCreate("SMTP Send", CTDLTHREAD_BIGSTACK, smtp_do_queue, NULL);