" + (s.clientName != null ? s.clientName : "?") + " | ");
- statsFile.print("" + inactive + " | ");
- statsFile.print("" + (s.VUID > 0 ? s.VUID : "") + " | ");
- statsFile.print("" + (s.UID > 0 ? s.UID : "") + " | ");
- statsFile.print("" + (s.MID > 0 ? s.MID : "") + " | ");
- statsFile.print("" + (s.allMessages ? "+" : "") + " | ");
- statsFile.print("" + (s.allReplies ? "+" : "") + " |
");
- } catch (Exception e) {
- System.err.println("WSKeepAlive statsFile print: " + e);
- }
- }
-
- if (inactive > 180) {
- s.sendByteBuffer(closeBytes);
- s.close();
- i.remove();
- } else if (inactive > 60) {
- if (!s.sendByteBuffer(pingBytes)) {
- i.remove();
- }
- }
- }
- }
-
- if (Main.STATSFILE != null) {
- try {
- statsFile.write("