mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-19 18:44:45 +00:00
Merge pull request #993 from ivanwick/server-terminates-when-bind-fails
SocketActor terminates when bind fails (#434)
This commit is contained in:
commit
b83391a251
|
|
@ -43,6 +43,9 @@ object SocketActor {
|
|||
def receive: Receive = {
|
||||
case Udp.Bound(_) =>
|
||||
ref ! Bound(sender())
|
||||
|
||||
case Udp.CommandFailed(_:Udp.Bind) =>
|
||||
context.system.terminate()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue