Skip to content

Commit

Permalink
Merge pull request #150 from M1saka10010/master
Browse files Browse the repository at this point in the history
fix: dispatcher infinite loop
  • Loading branch information
M1saka10010 authored Jan 24, 2024
2 parents faa943c + a5e8452 commit a6f8813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion judge/src/dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a6f8813

Please sign in to comment.