From f868c1ad1163668b8598a93dd00a0d40edcb934a Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Thu, 6 Jun 2019 09:21:59 +0300 Subject: [PATCH] Fixing my bug in 453e045 --- src/class_singleWorker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/class_singleWorker.py b/src/class_singleWorker.py index f69175e5..e52419c4 100644 --- a/src/class_singleWorker.py +++ b/src/class_singleWorker.py @@ -482,8 +482,8 @@ class singleWorker(threading.Thread, StoppableThread): if Inventory().by_type_and_tag(objectType, tag): return # not expired - payload = pack('>Q', (embeddedTime)) - payload += str(bytearray([0, 0, 0, objectType])) + payload = pack('>Q', embeddedTime) + payload += pack('>I', objectType) payload += encodeVarint(2 if len(peer.host) == 22 else 3) payload += encodeVarint(streamNumber) payload += objectPayload