openmoh / openmohaa

Open re-implementation of Medal of Honor: Allied Assault with modern features and bugfixes from ioquake3
GNU General Public License v2.0
307 stars 21 forks source link

In-game server browser hangs/crashes the game if no response from server #376

Open mohaa-man opened 1 week ago

mohaa-man commented 1 week ago

Describe the bug The in-game server browser hangs the game if there is no response within a few seconds.

To Reproduce Steps to reproduce the behavior:

  1. Ensure game server list server is unreachable (e.g. create a bad local DNS entry, or block the IP in your firewall or router, etc.)
  2. Go to the in-game server browser (Multiplayer->Join Game->Join Internet Game->Browse Internet Servers)
  3. Game will hang; after a few seconds OS may prompt you to force quit

Expected behavior The original game had this same bug/problem; it seems the server polling should be asynchronous from the GUI but it isn't. If there is no response, the server list should just appear empty, or perhaps indicate a no response, but allow you to navigate away.

Version information (please complete the following information):

Additional context (OPTIONAL) In-game list server is occasionally down or slow, so this problem occurs on its own from time to time (not just artificially).