refactor: LocalConnection.CheckFatal be gone!
use Shutdown instead, which is in the Connection interface, thus further reducing dependency on LocalConnection.
This commit is contained in:
1 parent
9a27299562
commit
99525ebf85
5 files changed
+16
-23
No files matched your search
+1
-1
@@ -252,7 +252,7 @@ func (router *Router) udpReader(conn *net.UDPConn, po PacketSink) {
|
||||
err = relayConn.Decryptor.IterateFrames(handleUDPPacket, udpPacket)
|
||||
if pde, ok := err.(PacketDecodingError); ok {
|
||||
if pde.Fatal {
|
||||
relayConn.CheckFatal(pde)
|
||||
relayConn.Shutdown(pde)
|
||||
} else {
|
||||
relayConn.log(pde.Error())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user