mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Terminating client thread before server thread to prevent alert box popping up
This commit is contained in:
@@ -71,8 +71,8 @@ public class RegularPacketsTest {
|
||||
|
||||
@After
|
||||
public void teardown () throws Exception {
|
||||
serverThread.terminate();
|
||||
clientThread.setSocketToClose();
|
||||
serverThread.terminate();
|
||||
GameState.setCurrentStage(GameStages.LOBBYING);
|
||||
for (int i = 0; i<20; i++)
|
||||
SleepThreadMaxDelay(); //Make sure socket is closed and toolkit remade.
|
||||
|
||||
Reference in New Issue
Block a user