Skip to content

Commit

Permalink
better recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
tawnkramer committed Aug 25, 2020
1 parent ad5f3c4 commit 34cdce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gym_donkeycar/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def proc_msg(self, sock):
if partial[0][0] == "{":
assembled_packet = "".join(partial)
assembled_packet = replace_float_notation(assembled_packet)
second_open = assembled_packet.find('{', 1)
second_open = assembled_packet.find('{"msg', 1)
if second_open != -1:
# hmm what to do? We have a partial packet. Trimming just
# the good part and discarding the rest.
Expand Down

0 comments on commit 34cdce0

Please sign in to comment.