forked from j62/ctbrec
fix mfc for okhttp v5
This commit is contained in:
parent
8bf9bb2b18
commit
9ef19502f6
|
@ -158,7 +158,9 @@ public class MyFreeCamsClient {
|
||||||
connecting = false;
|
connecting = false;
|
||||||
sessionStates.invalidateAll();
|
sessionStates.invalidateAll();
|
||||||
models.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");
|
webSocket.send("fcsws_20180422\n");
|
||||||
login(webSocket);
|
login(webSocket);
|
||||||
heartBeat = System.currentTimeMillis();
|
heartBeat = System.currentTimeMillis();
|
||||||
|
|
Loading…
Reference in New Issue