diff --git a/judge/src/dispatcher.c b/judge/src/dispatcher.c index e025969fc..7432e1d07 100644 --- a/judge/src/dispatcher.c +++ b/judge/src/dispatcher.c @@ -291,9 +291,9 @@ int _get_jobs_mysql(int *jobs) { if (DEBUG) write_log("%s", mysql_error(conn)); + sleep(10); conn = NULL; init_mysql(); - sleep(10); } res = mysql_store_result(conn); int i = 0;