close connection after disconnect
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m54s
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m54s
This commit is contained in:
@@ -198,11 +198,13 @@ type PacketQueue struct {
|
||||
}
|
||||
|
||||
func NewPacketQueue(connection net.Conn) *PacketQueue {
|
||||
|
||||
queue := &PacketQueue{
|
||||
Packets: make([]PacketWithData, 0),
|
||||
connection: connection,
|
||||
}
|
||||
go func() {
|
||||
defer connection.Close()
|
||||
for {
|
||||
messageType, data, err := ReceivePacket(queue.connection)
|
||||
ts := time.Now()
|
||||
|
||||
Reference in New Issue
Block a user