From 3f4fb72283bb15f7f1b1cc9cb91561c01291377b Mon Sep 17 00:00:00 2001 From: Sasikanth Miriyampalli Date: Mon, 5 Feb 2024 14:08:50 +0530 Subject: [PATCH] Remove launch block when fetching feeds during OPML import For OPML with feeds count less than chunk size --- .../kotlin/dev/sasikanth/rss/reader/opml/OpmlManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/opml/OpmlManager.kt b/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/opml/OpmlManager.kt index ca71074ae..bae0585c2 100644 --- a/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/opml/OpmlManager.kt +++ b/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/opml/OpmlManager.kt @@ -141,7 +141,7 @@ class OpmlManager( } } else { feedLinks.reversed().forEachIndexed { index, feed -> - launch { rssRepository.addFeed(feedLink = feed.link, title = feed.title) } + rssRepository.addFeed(feedLink = feed.link, title = feed.title) sendProgress(index, totalFeedCount) } }