parent
204d413779
commit
42aff098bd
1 changed files with 4 additions and 1 deletions
|
@ -81,7 +81,10 @@ impl Bot {
|
|||
loop {
|
||||
let mut lemmy = match Lemmy::new(&self.shared_config).await {
|
||||
Ok(data) => data,
|
||||
Err(_) => continue,
|
||||
Err(_) => {
|
||||
sleep(Duration::seconds(10).to_std().unwrap()).await;
|
||||
continue;
|
||||
},
|
||||
};
|
||||
|
||||
lemmy.get_communities().await;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue