mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Fix javafx error on ci
This commit is contained in:
@@ -145,12 +145,14 @@ public class ClientToServerThread implements Runnable {
|
||||
}
|
||||
} catch (ByteReadException e) {
|
||||
closeSocket();
|
||||
Platform.runLater(() -> {
|
||||
Alert alert = new Alert(AlertType.ERROR);
|
||||
alert.setHeaderText("Host has disconnected");
|
||||
alert.setContentText("Cannot find Server");
|
||||
alert.showAndWait();
|
||||
});
|
||||
if (Platform.isFxApplicationThread()) {
|
||||
Platform.runLater(() -> {
|
||||
Alert alert = new Alert(AlertType.ERROR);
|
||||
alert.setHeaderText("Host has disconnected");
|
||||
alert.setContentText("Cannot find Server");
|
||||
alert.showAndWait();
|
||||
});
|
||||
}
|
||||
clientLog(e.getMessage(), 1);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user