mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-12 19:14:46 +02:00
17037b0694
because it has no internet access, like when fetching the repository (modules.list file) of 3rd party modules. Previously I had.. url_start_async(request); synchronous_http_request_in_progress = 1; .. which worked fine for the "cannot connect case", like port blocked or timeout connecting. But if DNS fails then the step of setting synchronous_http_request_in_progress = -1 (so failed) already happens during the url_start_async(request); call, and then the line after it sets 'synchronous_http_request_in_progress = 1;' so we miss that it failed and wait in the I/O loop forever. Simply swapping the two lines of code fixes this. The other change is that when running the ModuleManager in "make" we should ignore the exit code. I probably broke that while refactoring and adding non-zero exit codes in de modulemanager past few months for this release.