mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-06-27 03:34:43 +02:00
added catch exeption to send function
This commit is contained in:
@ -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();}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user