mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-01-20 02:24:45 +00:00
SocketActor terminates when bind fails (#434)
This commit is contained in:
parent
71b8c011c9
commit
766afd38f9
|
|
@ -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