mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(gateway): add minutely loop to joinset
This commit is contained in:
parent
7edc432e0f
commit
8831e8fabe
1 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
|
||||
let mut signals = Signals::new(&[SIGINT, SIGTERM])?;
|
||||
|
||||
tokio::spawn(async move {
|
||||
set.spawn(tokio::spawn(async move {
|
||||
for sig in signals.forever() {
|
||||
info!("received signal {:?}", sig);
|
||||
|
||||
|
|
@ -86,7 +86,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
let _ = shutdown_tx.send(());
|
||||
break;
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
||||
let _ = shutdown_rx.recv();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue