mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 19:14:01 +03:00
bug fixes
This commit is contained in:
@@ -32,8 +32,11 @@ func (h *hub) Write(packet conntypes.Packet, req *protocol.TelegramRequest) erro
|
||||
}
|
||||
|
||||
if err := conn.write(packet); err != nil {
|
||||
conn.shutdown()
|
||||
return fmt.Errorf("cannot send packet: %w", err)
|
||||
}
|
||||
sub.channelReturnConnections <- conn
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user