public void reconnect(Context ctx, Callback receiver) { if (getStatus() == Status.FINISHED && callback != null) callback.downloadFinished(taskId, addData); else { this.callback = receiver; super.reconnect(ctx); } }
public void disconnect() { callback = null; super.disconnect(); }