package j0.l.a; import c.q.a.k.a; import j0.l.a.n0; import java.util.ArrayList; import java.util.Collection; import rx.functions.Action0; /* compiled from: OperatorBufferWithTime */ public class m0 implements Action0 { public final /* synthetic */ n0.a i; public m0(n0.a aVar) { this.i = aVar; } @Override // rx.functions.Action0 public void call() { n0.a aVar = this.i; synchronized (aVar) { if (!aVar.l) { Collection collection = aVar.k; aVar.k = new ArrayList(); try { aVar.i.onNext(collection); } catch (Throwable th) { a.a0(th); aVar.onError(th); } } } } }