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());
|
||||
if (ConnectResponseCode.ACCEPTED != responseMsg.getResponseCode()) {
|
||||
outputStream.onError(new RuntimeException(responseMsg.getErrorMsg()));
|
||||
} else {
|
||||
connected = true;
|
||||
}
|
||||
}
|
||||
if (!connected && requestMsg.getMsgType().equals(RequestMsgType.SYNC_REQUEST_RPC_MESSAGE)) {
|
||||
connected = true;
|
||||
if (connected && requestMsg.getMsgType().equals(RequestMsgType.SYNC_REQUEST_RPC_MESSAGE)) {
|
||||
ctx.getSyncEdgeService().sync(edge);
|
||||
}
|
||||
if (connected) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user