fix mfc for okhttp v5

This commit is contained in:
reusedname 2025-02-15 14:59:15 +05:00
parent 8bf9bb2b18
commit 9ef19502f6
1 changed files with 3 additions and 1 deletions

View File

@ -158,7 +158,9 @@ public class MyFreeCamsClient {
connecting = false;
sessionStates.invalidateAll();
models.invalidateAll();
LOG.trace("open: [{}]", response.body().string());
// WebSocketListener's response body is stripped, so we cannot call .string() on it (remove the line maybe?)
var body = response.body();
LOG.trace("open: [{}]", body.contentLength() != 0 ? body.string() : "");
webSocket.send("fcsws_20180422\n");
login(webSocket);
heartBeat = System.currentTimeMillis();