diff --git a/landlords-client/pom.xml b/landlords-client/pom.xml
index 678a491..b55c061 100644
--- a/landlords-client/pom.xml
+++ b/landlords-client/pom.xml
@@ -13,14 +13,14 @@
com.smallnico.ratel
landlords
- 1.2.5
+ 1.2.6
com.smallnico.ratel
landlords-common
- 1.2.5
+ 1.2.6
diff --git a/landlords-client/src/main/java/org/nico/ratel/landlords/client/event/ClientEventListener_CODE_GAME_WATCH_SUCCESSFUL.java b/landlords-client/src/main/java/org/nico/ratel/landlords/client/event/ClientEventListener_CODE_GAME_WATCH_SUCCESSFUL.java
index ad34bf4..7eca99f 100644
--- a/landlords-client/src/main/java/org/nico/ratel/landlords/client/event/ClientEventListener_CODE_GAME_WATCH_SUCCESSFUL.java
+++ b/landlords-client/src/main/java/org/nico/ratel/landlords/client/event/ClientEventListener_CODE_GAME_WATCH_SUCCESSFUL.java
@@ -40,7 +40,7 @@ public void call(Channel channel, String data) {
}
private void registerExitEvent(Channel channel) {
- String enter = SimpleWriter.write("watch");
+ String enter = SimpleWriter.write();
if ("exit".equalsIgnoreCase(enter) || "e".equalsIgnoreCase(enter)) {
quitWatch(channel);
return;
diff --git a/landlords-common/pom.xml b/landlords-common/pom.xml
index f6959e6..ef26a79 100644
--- a/landlords-common/pom.xml
+++ b/landlords-common/pom.xml
@@ -10,7 +10,7 @@
com.smallnico.ratel
landlords
- 1.2.5
+ 1.2.6
\ No newline at end of file
diff --git a/landlords-common/src/main/java/org/nico/ratel/landlords/print/SimpleWriter.java b/landlords-common/src/main/java/org/nico/ratel/landlords/print/SimpleWriter.java
index 24a9bed..1d6b7de 100644
--- a/landlords-common/src/main/java/org/nico/ratel/landlords/print/SimpleWriter.java
+++ b/landlords-common/src/main/java/org/nico/ratel/landlords/print/SimpleWriter.java
@@ -11,12 +11,18 @@ public class SimpleWriter {
public static String write(String message) {
System.out.println();
System.out.print("[ratel@" + message + "]$ ");
+ try {
+ return write();
+ }finally {
+ System.out.println();
+ }
+ }
+
+ public static String write() {
try {
return reader.readLine();
} catch (IOException e) {
e.printStackTrace();
- }finally {
- System.out.println();
}
return null;
}
diff --git a/landlords-server/pom.xml b/landlords-server/pom.xml
index fd249e0..e75fd8b 100644
--- a/landlords-server/pom.xml
+++ b/landlords-server/pom.xml
@@ -9,7 +9,7 @@
com.smallnico.ratel
landlords
- 1.2.5
+ 1.2.6
@@ -20,7 +20,7 @@
com.smallnico.ratel
landlords-common
- 1.2.5
+ 1.2.6
diff --git a/pom.xml b/pom.xml
index c196f2f..c78e1e3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
4.0.0
com.smallnico.ratel
landlords
- 1.2.5
+ 1.2.6
ratel
https://github.com/ainilili/ratel
pom