Skip to content

Commit 2138051

Browse files
committed
SDK Queuing System #8
1 parent 9ee35a2 commit 2138051

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

lib/src/data/data_manager.dart

+10-6
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,18 @@ class DataManager {
157157
if (success) {
158158
log('[DataManager] [slug] Complete publish model from slug is downloaded in background. Emitting.');
159159

160-
loadFontsFromPublishModel();
161-
} else {
162-
log('Failed to download complete publish bundle for slug ${config.slug}.');
160+
loadFontsFromPublishModel();
161+
} else {
162+
log('[DataManager] [slug] Failed to download complete publish bundle for slug ${config.slug}.');
163+
}
164+
});
165+
166+
if (_publishModel == null) {
167+
await publishBundleFuture;
163168
}
164169

165-
_logTime(stopwatch);
166-
return;
167-
} catch (e, stackTrace) {
170+
_logTime(stopwatch);
171+
} catch (e, stackTrace) {
168172
log('[DataManager] Error trying to download complete publish model from slug.');
169173
log('[DataManager] Since no publish model is cached, this is a complete stop to the data manager.');
170174
log('[DataManager]', level: 900, error: e, stackTrace: stackTrace);

0 commit comments

Comments
 (0)