231232233234235236237238239240241
if (scheduleCount > 0) { Callback callback = schedulerCallbackCaptor.getValue(); if (errorCount == 0) { callback.onComplete(htFile); } else { callback.onError(htFile, exception); } } model.stop(); // then