Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 336f21d5 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Move ServiceConnector job timeouts to the job handler thread"

parents f8544515 d29c3758
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -745,6 +745,10 @@ public interface ServiceConnector<I extends IInterface> {
            boolean mAsync = false;
            private String mDebugName;
            {
                // The timeout handler must be set before any calls to set timeouts on the
                // AndroidFuture, to ensure they are posted on the proper thread.
                setTimeoutHandler(getJobHandler());

                long requestTimeout = getRequestTimeoutMs();
                if (requestTimeout > 0) {
                    orTimeout(requestTimeout, TimeUnit.MILLISECONDS);