Merge pull request #993 from ivanwick/server-terminates-when-bind-fails

SocketActor terminates when bind fails (#434)
This commit is contained in:
Fate-JH 2022-05-07 00:40:32 -04:00 committed by GitHub
commit b83391a251
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()
}
}