Fixed many non-critical exceptions

Fixed an issue that could result in server hang
Added a new command ::npcsearch for searching for NPC IDs
This commit is contained in:
Ceikry
2023-02-18 01:37:30 +00:00
committed by Ryan
parent d75e40b98c
commit cecd6f1947
11 changed files with 60 additions and 25 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ public class IoEventHandler {
return;
}
} catch (IOException e) {
if (e.getMessage().contains("reset by peer")) {
if (e.getMessage().contains("reset by peer") && session != null) {
session.disconnect();
if (session.getPlayer() != null)
session.getPlayer().clear(true);