From dbffcd00305705be902c11e877b22f11742cd81e Mon Sep 17 00:00:00 2001 From: Gravit Date: Tue, 14 May 2019 15:58:13 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=B2=D0=B5=D1=80=D1=88=D0=B5=D0=BD=D0=B8=D1=8F=20LaunchServer?= =?UTF-8?q?=20=D0=BF=D0=BE=20Ctrl=20+=20C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/ru/gravit/utils/command/JLineCommandHandler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libLauncher/src/main/java/ru/gravit/utils/command/JLineCommandHandler.java b/libLauncher/src/main/java/ru/gravit/utils/command/JLineCommandHandler.java index bdd83e81..9e817b4c 100644 --- a/libLauncher/src/main/java/ru/gravit/utils/command/JLineCommandHandler.java +++ b/libLauncher/src/main/java/ru/gravit/utils/command/JLineCommandHandler.java @@ -74,6 +74,11 @@ public void clear() throws IOException { @Override public String readLine() throws IOException { - return reader.readLine(); + try { + return reader.readLine(); + } catch(UserInterruptException e) + { + throw new IOException(e); + } } }