Skip to content

Commit 6d27ded

Browse files
Update src/plugins/terminal/src/android/ProcessServer.java
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent e145f47 commit 6d27ded

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/plugins/terminal/src/android/ProcessServer.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ public void onMessage(WebSocket conn, ByteBuffer msg) {
7676
} catch (Exception ignored) {}
7777
}
7878

79-
@Override
80-
public void onMessage(WebSocket conn, String message) {
81-
try {
82-
ConnState state = conn.getAttachment();
79+
state.stdin.write(message.getBytes(java.nio.charset.StandardCharsets.UTF_8));
8380
state.stdin.write(message.getBytes());
8481
state.stdin.flush();
8582
} catch (Exception ignored) {}

0 commit comments

Comments
 (0)