I am trying to capture when a client connects to the server in order to list a new game in a lobby, the problem is, nothing happens until 2 players connect due to using try statements in run method of the server. I take it, when using a try statement, the code doesnt continue, until the try statement is met?
for example
while(true){
try1{
if(this is true){
print try1
{
else{
do that
}
}
catch(){
print error
}
try2{}
print something
}
So according to this code thats inside the run method of the server class, print try1 doesnt print until try1 and try2 are met
Im not fully understanding this too well, any help would be greatly appreciated!