Browse Source

Fix connection if edge removed

pull/2436/head
Volodymyr Babak 6 years ago
parent
commit
9980a72ee9
  1. 1
      common/edge-api/src/main/java/org/thingsboard/edge/rpc/EdgeGrpcClient.java

1
common/edge-api/src/main/java/org/thingsboard/edge/rpc/EdgeGrpcClient.java

@ -155,6 +155,7 @@ public class EdgeGrpcClient implements EdgeRpcClient {
@Override
public void onCompleted() {
log.debug("[{}] The rpc session was closed!", edgeKey);
onError.accept(new EdgeConnectionException("[" + edgeKey + "] The rpc session was closed!"));
}
};
}

Loading…
Cancel
Save