Skip to content

Commit f2b9eaa

Browse files
committed
Check serpSettingsSync from io
1 parent b7cb299 commit f2b9eaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/duckduckgo/app/browser/BrowserTabViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,8 +945,8 @@ class BrowserTabViewModel @Inject constructor(
945945
command.value = Command.RefreshOmnibar
946946
}
947947

948-
if (settingsPageFeature.serpSettingsSync().isEnabled()) {
949-
viewModelScope.launch {
948+
viewModelScope.launch {
949+
if (withContext(dispatchers.io()) { settingsPageFeature.serpSettingsSync().isEnabled() }) {
950950
contentScopeScriptsSubscriptionEventPluginPoint.getPlugins().forEach { plugin ->
951951
_subscriptionEventDataChannel.send(plugin.getSubscriptionEventData())
952952
}

0 commit comments

Comments
 (0)