mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
added catch exeption to send function
This commit is contained in:
parent
0c3a8739e1
commit
a8d755a812
@ -30,9 +30,10 @@ 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();}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user