Jump to content

Question

4 answers to this question

Recommended Posts

  • 0
Posted

kane oti leei to quote

 

it sends a packet which has nothing to read, but l2j didn't expect this to happen and make a System.exit to it.

 

Simply... it sends a 0 value (emtpy packet or so) ,so in the mmocore it displays ...

 

        else if (result == 0)

        {

            // read interest but nothing to read? wtf?

            System.out.println("NOOBISHT ERROR 2 THE MISSION");

            System.exit(0);

        }

 

and now... here's the simple -beep-in' fix:

 

1. Just delete the ELSE IF <- you will cry if you do like most kids

2. Make it not to close.. simply remove it and replace by this..

 

        else if (result == 0)

        {

            // read interest but nothing to read? wtf?

            System.out.println("MMOCore: Nothing to read.");

            System.out.println("Trying not to close the server...");

            //System.exit(0);

            System.out.println("MMOCore Sender IP: "+ con.getSocketChannel().socket().getInetAddress().getHostAddress());

            con.onForcedDisconnection();

            this.closeConnectionImpl(con);

        }

 

easy fix, huh?

 

its just that kids has no brains.. thanks and fixed on eminence since it started (1st noemver) :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..