This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
type PacketWithData struct {
|
||||
MessageType uint16
|
||||
MessageType uint32
|
||||
Added time.Time
|
||||
Consumed bool
|
||||
Data []byte
|
||||
@@ -69,7 +69,7 @@ func NewPacketQueue(connection net.Conn) *PacketQueue {
|
||||
return queue
|
||||
}
|
||||
|
||||
func (p *PacketQueue) Expect(messageType uint16, timeToWait time.Duration) (*PacketWithData, error) {
|
||||
func (p *PacketQueue) Expect(messageType uint32, timeToWait time.Duration) (*PacketWithData, error) {
|
||||
start := time.Now().Add(-time.Millisecond)
|
||||
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user