Skip to content

Commit

Permalink
update last fm instantly rather than after 10s
Browse files Browse the repository at this point in the history
  • Loading branch information
14ROVI committed Apr 3, 2023
1 parent 13898fd commit a3c672c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/windows/spotify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ impl Component for Spotify {
});

let link = ctx.link().clone();
Interval::new(10_000, move || {
link.send_message(Msg::UpdateHistory);
Interval::new(10_000, move ||
link.send_message(Msg::UpdateHistory)
}).forget();
).forget();

Self {
lanyard_ws_write: tx,
Expand Down

0 comments on commit a3c672c

Please sign in to comment.