fix mfc for okhttp v5
This commit is contained in:
parent
8bf9bb2b18
commit
9ef19502f6
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue