package com.arellomobile.android.push.utils;

import android.content.Context;
import android.os.AsyncTask;

/* loaded from: /storage/emulated/0/Documents/jadec/sources/com.UBI.A90.WW/dex-files/0.dex */
public abstract class WorkerTask extends AsyncTask<Void, Void, Void> {
    private Context mContext;

    protected abstract void doWork(Context context) throws Exception;

    /* JADX INFO: Access modifiers changed from: protected */
    public WorkerTask(Context context) {
        this.mContext = context;
    }

    /* JADX INFO: Access modifiers changed from: protected */
    @Override // android.os.AsyncTask
    public Void doInBackground(Void... aVoids) {
        try {
            doWork(this.mContext);
            this.mContext = null;
        } catch (Throwable th) {
            this.mContext = null;
        }
        return null;
    }
}
