actor: ignore more messages while TcpConnection is shutting down

Otherwise, there will be noisy warnings in the log for messages that
carry `DeadLetterSupression` like all the `CloseCommands`.
This commit is contained in:
Johannes Rudolph 2019-07-31 13:36:58 +02:00
parent e55ac350c3
commit 21adbcfa34
No known key found for this signature in database
GPG key ID: 52AF1C9ABD77E6E5

View file

@ -199,6 +199,7 @@ private[io] abstract class TcpConnection(val tcp: TcpExt, val channel: SocketCha
def unregistering: Receive = {
case Unregistered => context.stop(self) // postStop will notify interested parties
case ChannelReadable | ChannelWritable | ChannelAcceptable | ChannelConnectable => // ignore, we are going away soon anyway
case _: DeadLetterSuppression => // ignore
}
// AUXILIARIES and IMPLEMENTATION