mirror of
https://gitee.com/BDWare/cp.git
synced 2025-12-27 17:46:45 +00:00
update for async get endpoint info
This commit is contained in:
@@ -85,7 +85,8 @@ public class DoipLocalSingleton {
|
|||||||
EndpointInfo endpointInfo = null;
|
EndpointInfo endpointInfo = null;
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
endpointInfo = irpClient.getEndpointInfo();
|
endpointInfo = irpClient.getEndpointInfo();
|
||||||
if (endpointInfo == null) Thread.sleep(200);
|
if (endpointInfo == null)
|
||||||
|
Thread.sleep(200);
|
||||||
}
|
}
|
||||||
if (endpointInfo != null) {
|
if (endpointInfo != null) {
|
||||||
repoID = endpointInfo.getDoId();
|
repoID = endpointInfo.getDoId();
|
||||||
|
|||||||
Reference in New Issue
Block a user