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) :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...