Manage probable connection termination.
This commit is contained in:
@@ -508,7 +508,14 @@ public class LoginServerThread extends Thread
|
||||
_blowfish.crypt(data, 2, size);
|
||||
|
||||
_out.write(data);
|
||||
_out.flush();
|
||||
try
|
||||
{
|
||||
_out.flush();
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
// LoginServer might have terminated.
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
@@ -247,7 +247,14 @@ public class GameServerThread extends Thread
|
||||
_blowfish.crypt(data, 2, size);
|
||||
|
||||
_out.write(data);
|
||||
_out.flush();
|
||||
try
|
||||
{
|
||||
_out.flush();
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
// GameServer might have terminated.
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (IOException e)
|
||||
|
Reference in New Issue
Block a user