Reset session after spirc crash

This commit is contained in:
Jarkko Lehtoranta 2023-06-13 18:00:28 +03:00
parent e5abed7c92
commit 02c9be368d
No known key found for this signature in database
GPG key ID: E539048C587D1F09

View file

@ -1811,6 +1811,9 @@ async fn main() {
if last_credentials.is_some() && !reconnect_exceeds_rate_limit() {
auto_connect_times.push(Instant::now());
if !session.is_invalid() {
session.shutdown();
}
connecting = true;
} else {
error!("Spirc shut down too often. Not reconnecting automatically.");