strip string before passing to handler

This commit is contained in:
Luca Conte 2024-11-30 18:43:04 +01:00
parent 1fb284eb1a
commit addf542300
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class AsyncSocket {
String message = this.in.readLine(); String message = this.in.readLine();
if (message.length() <= 0) continue; if (message.length() <= 0) continue;
// TODO: remove \r\n message = message.strip();
this.handler.receive(message); this.handler.receive(message);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();