SocketActor terminates when bind fails (#434)

This commit is contained in:
Ivan Wick 2022-05-01 09:43:54 -07:00
parent 71b8c011c9
commit 766afd38f9

View file

@ -43,6 +43,9 @@ object SocketActor {
def receive: Receive = {
case Udp.Bound(_) =>
ref ! Bound(sender())
case Udp.CommandFailed(_:Udp.Bind) =>
context.system.terminate()
}
}