Author: Ghostwolf <foxxe@wtfs.net>
[ircu2.10.12-pk.git] / ircd / engine_select.c
index f09c7713c5466adaf4d2009d655d5aa9f09c4b8c..2149b8978b0ce6ea28873c190e7b6a55cef995be 100644 (file)
@@ -241,7 +241,7 @@ engine_loop(struct Generators* gen)
        /* Log the select error */
        log_write(LS_SOCKET, L_ERROR, 0, "select() error: %m");
        if (!errors++)
-         timer_add(&clear_error, error_clear, 0, TT_PERIODIC,
+         timer_add(timer_init(&clear_error), error_clear, 0, TT_PERIODIC,
                    ERROR_EXPIRE_TIME);
        else if (errors > SELECT_ERROR_THRESHOLD) /* too many errors... */
          server_restart("too many select errors");