someone pls?
|
[null]: <PLAYER> Connection closed by user.
[Romania cldd]: <PLAYER> Connection accepted, Process time: 0ms.
[null]: <PLAYER> Connection closed by user.
what are this nulls?[null]: <PLAYER> Connection closed by user.
its because i have a router?if i run my server on localhost dont appear
and thisCode:public void destruct() { if (mySock == null) { return; } // already shutdown try { if (this != null) { if (playerName != "" || playerName.length() > 0) { misc.println("[" + playerName + "]: <"+ (playerRights > 0 ? "STAFF" : "PLAYER") +"> Connection closed by user."); } } disconnected = true; if (saveNeeded) SG().savegame(this, true); if (in != null) { in.close(); } if (out != null) { out.close(); } mySock.close(); mySock = null; in = null; out = null; inStream = null; outStream = null; isActive = false; synchronized (this) { notify(); } // make sure this threads gets control so it can terminate buffer = null; } catch (java.io.IOException ioe) { ioe.printStackTrace(); } super.destruct(); }
whats the problem here??Code:public void stop() { PLAYER = "null"; PLAYER_ID = 0; isBusy = false; startAnimation(-1); }
i will rep+++
someone pls?
oooo ooo i got dis too, so I look at the destruct method, and found out.. Here just replace urs with mine
Code:public void destruct() { if (mySock == null) { return; } try { if (playerName != null && playerRights >= 0) { misc.println("[" + playerName + "]: <"+ (playerRights > 0 ? "STAFF" : "PLAYER") +"> Connection closed by user."); } else { return; } disconnected = true; if (inTrade) { if(!acceptedTrade) { getTrade().declineTrade(); } } else { SG().savegame(this, true); } if (in != null) { in.close(); } if (out != null) { out.close(); } if (mySock != null) { mySock.close(); } mySock = null; in = null; out = null; inStream = null; outStream = null; isActive = false; synchronized (this) { notify(); } buffer = null; } catch (java.io.IOException ioe) { ioe.printStackTrace(); } super.destruct(); }
thank you very much!fixed!rep+++
Weird with you guys because I never had this. ;P
probable is because i have a router idk whats the problem but this fix my problemtnx again
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |