Perase ayto edw einai to fix tou Noobish Error
to exw kanei test kai se pack diko mou pou eixa ftia3ei c6
+++ b/trunk/Tange/java/net/sf/l2j/mmocore/SelectorThread.java
@@ -334,8 +334,7 @@
if (buf.position() == buf.limit())
{
- // should never happen
- System.out.println("POS ANTES SC.READ(): "+buf.position()+" limit: "+buf.limit());
- System.out.println("NOOBISH ERROR "+( buf == READ_BUFFER ? "READ_BUFFER" : "temp"));
- System.exit(0);
+ System.out.println("MMOCore: "+ con.getSocketChannel().socket().getInetAddress().getHostAddress());
+ con.onForcedDisconnection();
+ this.closeConnectionImpl(con);
}
@@ -362,7 +361,7 @@
else if (result == 0)
{
- // read interest but nothing to read? wtf?
- System.out.println("NOOBISH ERROR 2 THE MISSION");
- System.exit(0);
+ System.out.println("MMOCore: "+ con.getSocketChannel().socket().getInetAddress().getHostAddress());
+ con.onForcedDisconnection();
+ this.closeConnectionImpl(con);
}
else if (result == -1)