aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index afd1347..57975db 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -52,7 +52,7 @@ async fn main() {
let (userinfo, refresh) = get_userinfo(&s).await;
let (ctx, status) = get_ctx(userinfo, q.font, q.rest).await;
- let (theme, res) = render_theme(q.theme.as_deref(), &ctx);
+ let (theme, res) = tokio::task::spawn_blocking(move || render_theme(q.theme.as_deref(), &ctx)).await.expect("fatal error in theme rendering");
log::debug!(target: "lfm_embed::main::user", "Using theme {theme}");
match res {