Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
Abort instead of Close
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Nov 2, 2020
1 parent a44ed7f commit a94e6b0
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -124,7 +124,7 @@ class PeerConnectionHandler(val settings: NetworkSettings,
reportStrangeInput

private def fatalCommands: Receive = {
case _: ConnectionClosed =>
case _: ConnectionClosed =>
log.info(s"Connection closed to $connectionId")
context stop self
}
Expand All @@ -144,7 +144,7 @@ class PeerConnectionHandler(val settings: NetworkSettings,
case CloseConnection =>
log.info(s"Enforced to abort communication with: " + connectionId + ", switching to closing mode")
pushAllWithNoAck()
connection ! Close
connection ! Abort

case ReceivableMessages.Ack(_) => // ignore ACKs in stable mode

Expand Down Expand Up @@ -178,7 +178,7 @@ class PeerConnectionHandler(val settings: NetworkSettings,
case CloseConnection =>
log.info(s"Enforced to abort communication with: " + connectionId + s", switching to closing mode")
pushAllWithNoAck()
connection ! Close
connection ! Abort
}

def remoteInterface: Receive = {
Expand Down

0 comments on commit a94e6b0

Please sign in to comment.