Sync should be send only once or by force button
This commit is contained in:
parent
79089ad642
commit
81f1091a4f
@ -160,10 +160,11 @@ public final class EdgeGrpcSession implements Closeable {
|
|||||||
.build());
|
.build());
|
||||||
if (ConnectResponseCode.ACCEPTED != responseMsg.getResponseCode()) {
|
if (ConnectResponseCode.ACCEPTED != responseMsg.getResponseCode()) {
|
||||||
outputStream.onError(new RuntimeException(responseMsg.getErrorMsg()));
|
outputStream.onError(new RuntimeException(responseMsg.getErrorMsg()));
|
||||||
|
} else {
|
||||||
|
connected = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!connected && requestMsg.getMsgType().equals(RequestMsgType.SYNC_REQUEST_RPC_MESSAGE)) {
|
if (connected && requestMsg.getMsgType().equals(RequestMsgType.SYNC_REQUEST_RPC_MESSAGE)) {
|
||||||
connected = true;
|
|
||||||
ctx.getSyncEdgeService().sync(edge);
|
ctx.getSyncEdgeService().sync(edge);
|
||||||
}
|
}
|
||||||
if (connected) {
|
if (connected) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user