added catch exeption to send function

This commit is contained in:
Tobydrama 2020-04-16 14:57:01 +02:00
parent 0c3a8739e1
commit a8d755a812

View File

@ -30,9 +30,10 @@ public class RoboRallyClient {
* Sends something to the server
* @param object The object to send to the server
*/
public void sendElement(Object object) {
client.sendTCP(object);
}
public void sendElement(Object object) {try{
client.sendTCP(object);}
catch(Exception e){e.printStackTrace();}
}
}