Skip to content

Commit

Permalink
Fixed bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowC0 committed Jul 19, 2024
1 parent b717198 commit 9a96a38
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/src/main/java/cn/rbc/termuc/Lsp.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class Lsp {
private long mLastReceivedTime;

public void start(final Context mC, final Handler read) {
Utils.run(mC, "/system/bin/nc", new String[]{"-l", "-s", Settings.lsp_host, "-p", Integer.toString(Settings.lsp_port), "clangd", "--header-insertion-decorators=0", "--log=verbose", "--completion-style=bundled"}, Environment.getExternalStorageDirectory().getAbsolutePath(), true);
Utils.run(mC, "/system/bin/nc", new String[]{"-l", "-s", Settings.lsp_host, "-p", Integer.toString(Settings.lsp_port), "clangd", "--header-insertion-decorators=0", "--completion-style=bundled"}, Environment.getExternalStorageDirectory().getAbsolutePath(), true);
sk = new Socket();
mExecutor = Executors.newSingleThreadExecutor();
new Thread(){
Expand Down Expand Up @@ -60,8 +60,6 @@ public void run() {
byte[] strb = new byte[len];
for (i=0; i<len; i++)
strb[i] = (byte)is.read();
if (cn.rbc.termuc.BuildConfig.DEBUG)
Log.i(TAG, new String(strb));
InputStream r = new ByteArrayInputStream(strb);
JsonReader limitInput = new JsonReader(new InputStreamReader(r, StandardCharsets.UTF_8));
Message msg = new Message();
Expand Down

0 comments on commit 9a96a38

Please sign in to comment.