File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
WordPress/src/main/java/org/wordpress/android/ui/uploads Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import org.wordpress.android.fluxc.store.PostStore
1616import org.wordpress.android.fluxc.store.SiteStore
1717import org.wordpress.android.modules.BG_THREAD
1818import org.wordpress.android.modules.IO_THREAD
19+ import org.wordpress.android.util.CrashLoggingUtils
1920import org.wordpress.android.util.NetworkUtilsWrapper
2021import org.wordpress.android.util.skip
2122import org.wordpress.android.viewmodel.helpers.ConnectionStatus
@@ -82,14 +83,22 @@ class LocalDraftUploadStarter @Inject constructor(
8283
8384 private fun queueUploadFromAllSites () = launch {
8485 val sites = siteStore.sites
85- checkConnectionAndUpload(sites = sites)
86+ try {
87+ checkConnectionAndUpload(sites = sites)
88+ } catch (e: Exception ) {
89+ CrashLoggingUtils .log(e)
90+ }
8691 }
8792
8893 /* *
8994 * Upload all local drafts from the given [site].
9095 */
9196 fun queueUploadFromSite (site : SiteModel ) = launch {
92- checkConnectionAndUpload(sites = listOf (site))
97+ try {
98+ checkConnectionAndUpload(sites = listOf (site))
99+ } catch (e: Exception ) {
100+ CrashLoggingUtils .log(e)
101+ }
93102 }
94103
95104 /* *
You can’t perform that action at this time.
0 commit comments