Skip to content

Commit

Permalink
Added missing len
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas <[email protected]>
  • Loading branch information
tomasg2012 committed Aug 1, 2024
1 parent 6f3f98b commit 750c186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RedfishEventListener_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def read_my_socket(active_socket):
while True:
more_data = active_socket.recv(PACKET_SIZE)
data = b''.join([data, more_data])
if more_data < PACKET_SIZE:
if len(more_data) < PACKET_SIZE:
break

response_array = data.decode("utf-8").split("\r\n")
Expand Down

0 comments on commit 750c186

Please sign in to comment.