package o;

import java.lang.ref.WeakReference;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Go0 extends Thread {
    public final WeakReference l;
    public final long m;
    public final CountDownLatch n = new CountDownLatch(1);

    /* renamed from: o, reason: collision with root package name */
    public boolean f137o = false;

    public Go0(X1 x1, long j) {
        this.l = new WeakReference(x1);
        this.m = j;
        start();
    }

    @Override // java.lang.Thread, java.lang.Runnable
    public final void run() {
        X1 x1;
        WeakReference weakReference = this.l;
        try {
            if (this.n.await(this.m, TimeUnit.MILLISECONDS) || (x1 = (X1) weakReference.get()) == null) {
                return;
            }
            x1.b();
            this.f137o = true;
        } catch (InterruptedException unused) {
            X1 x12 = (X1) weakReference.get();
            if (x12 != null) {
                x12.b();
                this.f137o = true;
            }
        }
    }
}
