aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/stomp
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2021-11-27 23:19:16 +0900
committersyeyoung <cyoung06@naver.com>2021-11-27 23:19:16 +0900
commitd239ae4d4748fc4867ab45a5cc7d42bfb5ac547c (patch)
tree39118080fafa68e896c10cee03f8c1cda9f0defd /src/main/java/kr/syeyoung/dungeonsguide/stomp
parent7c22f439db227552d88d4df20e0cce6da947a2d0 (diff)
downloadSkyblock-Dungeons-Guide-d239ae4d4748fc4867ab45a5cc7d42bfb5ac547c.tar.gz
Skyblock-Dungeons-Guide-d239ae4d4748fc4867ab45a5cc7d42bfb5ac547c.tar.bz2
Skyblock-Dungeons-Guide-d239ae4d4748fc4867ab45a5cc7d42bfb5ac547c.zip
- Deadlock on ApiFetchur (Waits until lilyweight data and lilyweight data fetcher waits for other tasks to finish)
- New PartyManager - ChatProcessor now manages all automatic chat messages and msot chat parsing - PartyFinderSetting now contains option to leave party - Log StompPayload when debug enabled
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/stomp')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java b/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java
index 6bb45a84..27b1cdc9 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompPayload.java
@@ -53,10 +53,13 @@ public class StompPayload {
if (payload != null)
sb.append(payload);
sb.append((char) 0);
+ if (FeatureRegistry.DEBUG.isEnabled()) System.out.println("Sending.. "+sb.toString());
return sb.toString();
}
public static StompPayload parse(String payload) {
+ if (FeatureRegistry.DEBUG.isEnabled()) System.out.println("Receving.. "+payload);
+
Scanner scanner = new Scanner(payload);
StompPayload stompPayload = new StompPayload();
stompPayload.method = StompHeader.valueOf(scanner.nextLine());