mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
fix warnings
This commit is contained in:
parent
0675e05e28
commit
8de73c336f
2 changed files with 3 additions and 3 deletions
|
@ -311,7 +311,9 @@ impl Client {
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
if let ReadPacketError::ConnectionClosed = e {
|
if let ReadPacketError::ConnectionClosed = e {
|
||||||
info!("Connection closed");
|
info!("Connection closed");
|
||||||
client.shutdown().await;
|
if let Err(e) = client.shutdown().await {
|
||||||
|
error!("Error shutting down connection: {:?}", e);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if IGNORE_ERRORS {
|
if IGNORE_ERRORS {
|
||||||
|
|
|
@ -22,8 +22,6 @@ async fn main() -> anyhow::Result<()> {
|
||||||
.await;
|
.await;
|
||||||
println!("{:?}", e);
|
println!("{:?}", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn handle(bot: Client, event: Event, _state: State) -> anyhow::Result<()> {
|
async fn handle(bot: Client, event: Event, _state: State) -> anyhow::Result<()> {
|
||||||
|
|
Loading…
Add table
Reference in a new issue