Skip to content

Commit

Permalink
update to 1.2.6, support exit spectator mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
ainilili committed Mar 25, 2021
1 parent 438b79c commit 21d98aa
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
4 changes: 2 additions & 2 deletions landlords-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
<parent>
<groupId>com.smallnico.ratel</groupId>
<artifactId>landlords</artifactId>
<version>1.2.5</version>
<version>1.2.6</version>
</parent>

<dependencies>
<dependency>
<groupId>com.smallnico.ratel</groupId>
<artifactId>landlords-common</artifactId>
<version>1.2.5</version>
<version>1.2.6</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion landlords-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>com.smallnico.ratel</groupId>
<artifactId>landlords</artifactId>
<version>1.2.5</version>
<version>1.2.6</version>
</parent>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions landlords-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>com.smallnico.ratel</groupId>
<artifactId>landlords</artifactId>
<version>1.2.5</version>
<version>1.2.6</version>
</parent>

<properties>
Expand All @@ -20,7 +20,7 @@
<dependency>
<groupId>com.smallnico.ratel</groupId>
<artifactId>landlords-common</artifactId>
<version>1.2.5</version>
<version>1.2.6</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.smallnico.ratel</groupId>
<artifactId>landlords</artifactId>
<version>1.2.5</version>
<version>1.2.6</version>
<name>ratel</name>
<url>https://github.com/ainilili/ratel</url>
<packaging>pom</packaging>
Expand Down

0 comments on commit 21d98aa

Please sign in to comment.