Помогите Timeout на отладке.

  • Автор темы Автор темы The.wolk
  • Дата начала Дата начала

The.wolk

Активный участник
Пользователь
Баллы
73
Имя в Minecraft
BoJI4aPa300
Доброго времени суток, подскажите. Когда отладчиком тормозишь сервер на точке остановки, клиент выкидывает с таймаутом, я понимаю, что так и должно быть по факту, но может есть возможность отрубить эту тему в клиенте. Если нет, то я не шибко расстроюсь ))
 
Доброго времени суток, подскажите. Когда отладчиком тормозишь сервер на точке остановки, клиент выкидывает с таймаутом, я понимаю, что так и должно быть по факту, но может есть возможность отрубить эту тему в клиенте. Если нет, то я не шибко расстроюсь ))
В классе NetworkManager
Java:
    public void exceptionCaught(ChannelHandlerContext chc, Throwable exc)
            throws Exception {
        ChatComponentTranslation chatcomponenttranslation;

        if (excinstanceof TimeoutException) {
           //chatcomponenttranslation = new ChatComponentTranslation("disconnect.timeout", //new Object[0]);
           return;
        } else {
            chatcomponenttranslation = new ChatComponentTranslation("disconnect.genericReason",
                    new Object[] { "Internal Exception: " + exc});
        }

       this.closeChannel(chatcomponenttranslation);
    }
 
Последнее редактирование:
В классе NetworkManager
Java:
    public void exceptionCaught(ChannelHandlerContext chc, Throwable exc)
            throws Exception {
        ChatComponentTranslation chatcomponenttranslation;

        if (excinstanceof TimeoutException) {
           //chatcomponenttranslation = new ChatComponentTranslation("disconnect.timeout", //new Object[0]);
           return;
        } else {
            chatcomponenttranslation = new ChatComponentTranslation("disconnect.genericReason",
                    new Object[] { "Internal Exception: " + exc});
        }

       this.closeChannel(chatcomponenttranslation);
    }
Я на клиенте закомментил, и всё равно вылетает "Disconnected from server".
 
В классе NetworkManager
Java:
    public void exceptionCaught(ChannelHandlerContext chc, Throwable exc)
            throws Exception {
        ChatComponentTranslation chatcomponenttranslation;

        if (excinstanceof TimeoutException) {
           //chatcomponenttranslation = new ChatComponentTranslation("disconnect.timeout", //new Object[0]);
           return;
        } else {
            chatcomponenttranslation = new ChatComponentTranslation("disconnect.genericReason",
                    new Object[] { "Internal Exception: " + exc});
        }

       this.closeChannel(chatcomponenttranslation);
    }
Мимо. Тут уже ставят перед фактом вылета с сервера.
 
Назад
Верх