Skip to content

Commit

Permalink
Merge pull request #3851 from driftluo/rc/v0.108.x
Browse files Browse the repository at this point in the history
[Backport] omission modification
  • Loading branch information
quake authored Feb 23, 2023
2 parents 0c4c4fb + 98996a8 commit 0cd1a7e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions network/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -717,13 +717,11 @@ impl<T: ExitHandler> ServiceHandle for EventHandler<T> {
"registry peer failed {:?} disconnect it, {} => {}",
err, session_context.id, session_context.address,
);
if let Err(err) = async_disconnect_with_message(
context.control(),
if let Err(err) = disconnect_with_message(
&control,
session_context.id,
"reject peer connection",
)
.await
{
) {
debug!(
"Disconnect failed {:?}, error: {:?}",
session_context.id, err
Expand Down

0 comments on commit 0cd1a7e

Please sign in to comment.