remove closed as expected on switchsides, which makes second prompt

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-02-20 15:54:53 +08:00
parent d18fc32f63
commit 13b1b78f72

View File

@ -1593,7 +1593,6 @@ impl Connection {
uuid.to_string().as_ref(),
])
.ok();
self.send_close_reason_no_retry("Closed as expected").await;
self.on_close("switch sides", false).await;
return false;
}