mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-08-12 01:55:27 +02:00
added catch exeption to send function
This commit is contained in:
@@ -30,8 +30,9 @@ public class RoboRallyClient {
|
|||||||
* Sends something to the server
|
* Sends something to the server
|
||||||
* @param object The object to send to the server
|
* @param object The object to send to the server
|
||||||
*/
|
*/
|
||||||
public void sendElement(Object object) {
|
public void sendElement(Object object) {try{
|
||||||
client.sendTCP(object);
|
client.sendTCP(object);}
|
||||||
|
catch(Exception e){e.printStackTrace();}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user