Removed race condition from CheckIfAlreadySeen()
[citadel.git] / citadel / modules / network / serv_netspool.c
index 5d7daa7f0a808dcd75cabeab2d76914d0bc419d7..0cb7c902a428f6f22c19a61932bda59f83f7cffb 100644 (file)
@@ -498,8 +498,6 @@ void network_spoolout_room(SpoolControl *sc)
 int network_usetable(struct CtdlMessage *msg)
 {
        StrBuf *msgid;
-       struct CitContext *CCC = CC;
-       time_t now;
 
        /* Bail out if we can't generate a message ID */
        if ((msg == NULL) || CM_IsEmpty(msg, emessageId))
@@ -519,8 +517,7 @@ int network_usetable(struct CtdlMessage *msg)
                        return(0);
                }
        }
-       now = time(NULL);
-       if (CheckIfAlreadySeen(msgid, now, 0, eUpdate)) {
+       if (CheckIfAlreadySeen(msgid)) {
                FreeStrBuf(&msgid);
                return(1);
        }