aquatic_ws: don't run log::error on closing closed connection

This commit is contained in:
Joakim Frostegård 2020-08-01 06:09:42 +02:00
parent 5845393fbb
commit 716228c1b1

View file

@ -261,7 +261,7 @@ impl Connection {
if let Either::Left(ref mut ews) = self.inner { if let Either::Left(ref mut ews) = self.inner {
if ews.ws.can_read(){ if ews.ws.can_read(){
if let Err(err) = ews.ws.close(None){ if let Err(err) = ews.ws.close(None){
::log::error!("error closing ws: {}", err); ::log::info!("error closing ws: {}", err);
} }
// Required after ws.close() // Required after ws.close()