- cdb_check_handles(); /* suggested by Justin Case */
- PerformSessionHooks(EVT_TIMER); /* Run any timer hooks */
+ /* First, do the "as often as needed" stuff... */
+ old_name = CtdlThreadName("House Keeping - Journal");
+ JournalRunQueue();
+
+ CtdlThreadName("House Keeping - EVT_HOUSE");
+ PerformSessionHooks(EVT_HOUSE); /* perform as needed housekeeping */
+
+ /* Then, do the "once per minute" stuff... */
+ if (do_perminute_housekeeping_now) {
+ cdb_check_handles(); /* suggested by Justin Case */
+ CtdlThreadName("House Keeping - EVT_TIMER");
+ PerformSessionHooks(EVT_TIMER); /* Run any timer hooks */
+ }