Skip to content

enan fix code gia noobish error

Featured Replies

doste ena sosto fix noobish error

  • Author

l2jfree gracia ct 2.2 gia to login thelo to gameserver ine ok

Index: com.l2jserver.mmocore.network.SelectorThread.java

 

        if (buf.position() == buf.limit())

        {

-                // should never happen

-                System.err.println("POS ANTES SC.READ(): "+buf.position()+" limit: "+buf.limit());

-                System.err.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);

        }

        try

        {

            result = con.getSocketChannel().read(buf);

        }

 

@@

        else if (result == 0)

        {

-                System.err.println("POS ANTES SC.READ(): "+buf.position()+" limit: "+buf.limit());

-                System.err.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);

        }

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.