Manage probable connection termination.
This commit is contained in:
		| @@ -599,7 +599,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) | ||||
|   | ||||
| @@ -249,7 +249,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
	 MobiusDevelopment
					MobiusDevelopment