File tree Expand file tree Collapse file tree
xds/src/main/java/io/grpc/xds Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7272import java .util .concurrent .ExecutionException ;
7373import java .util .concurrent .ScheduledExecutorService ;
7474import java .util .concurrent .TimeUnit ;
75+ import java .util .concurrent .TimeoutException ;
7576import java .util .concurrent .atomic .AtomicBoolean ;
7677import java .util .concurrent .atomic .AtomicReference ;
7778import java .util .logging .Level ;
@@ -169,8 +170,8 @@ public void run() {
169170 });
170171 Exception exception ;
171172 try {
172- exception = initialStartFuture .get ();
173- } catch (InterruptedException | ExecutionException e ) {
173+ exception = initialStartFuture .get (5000 , TimeUnit . MILLISECONDS );
174+ } catch (InterruptedException | ExecutionException | TimeoutException e ) {
174175 throw new RuntimeException (e );
175176 }
176177 if (exception != null ) {
You can’t perform that action at this time.
0 commit comments