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