mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-05 21:20:20 +00:00
SocketActor terminates when bind fails (#434)
This commit is contained in:
parent
71b8c011c9
commit
766afd38f9
1 changed files with 3 additions and 0 deletions
|
|
@ -43,6 +43,9 @@ object SocketActor {
|
|||
def receive: Receive = {
|
||||
case Udp.Bound(_) =>
|
||||
ref ! Bound(sender())
|
||||
|
||||
case Udp.CommandFailed(_:Udp.Bind) =>
|
||||
context.system.terminate()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue