mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-28 13:05:28 -05:00
clean up after error
This commit is contained in:
@@ -77,6 +77,7 @@ func (this *Shadowsocks) Listen(port v2net.Port) error {
|
||||
udpHub, err := hub.ListenUDP(port, this.handlerUDPPayload)
|
||||
if err != nil {
|
||||
log.Error("Shadowsocks: Failed to listen UDP on port ", port, ": ", err)
|
||||
return err
|
||||
}
|
||||
this.udpHub = udpHub
|
||||
this.udpServer = hub.NewUDPServer(this.packetDispatcher)
|
||||
|
||||
Reference in New Issue
Block a user