package com.tencent.mm.modelvideo;

import android.os.SystemClock;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.modelvideo.y.a;
import com.tencent.mm.sdk.platformtools.ab;

class y$a$3 implements Runnable {
    final /* synthetic */ a fXQ;

    y$a$3(a aVar) {
        this.fXQ = aVar;
    }

    public final void run() {
        AppMethodBeat.i(50870);
        long currentTimeMillis = System.currentTimeMillis() - a.l(this.fXQ);
        ab.d("MicroMsg.VideoService", "Try Run service runningFlag:" + a.h(this.fXQ) + " timeWait:" + currentTimeMillis + " sending:" + a.j(this.fXQ) + " recving:" + a.i(this.fXQ));
        if (a.h(this.fXQ)) {
            if (currentTimeMillis < 60000) {
                AppMethodBeat.o(50870);
                return;
            }
            ab.e("MicroMsg.VideoService", "ERR: Try Run service runningFlag:" + a.h(this.fXQ) + " timeWait:" + currentTimeMillis + ">=MAX_TIME_WAIT sending:" + a.j(this.fXQ) + " recving:" + a.i(this.fXQ));
        }
        a.a(this.fXQ, 3);
        a.m(this.fXQ);
        a.d(this.fXQ);
        a.b(this.fXQ);
        a.e(this.fXQ);
        a.c(this.fXQ);
        this.fXQ.cqZ.evE = SystemClock.elapsedRealtime();
        a.n(this.fXQ).ae(10, 10);
        AppMethodBeat.o(50870);
    }

    public final String toString() {
        AppMethodBeat.i(50871);
        String str = super.toString() + "|run";
        AppMethodBeat.o(50871);
        return str;
    }
}
