In recv, if char is something unexpected, it will loop until error_count > retry without re-evaluating char
g-frenette opened this issue · 1 comments
g-frenette commented
In xmodem/init.py, between lines 472 and 510, we have a while loop and if
clauses to determine the appropriate action to take. I had a case where I would have the variable char
being something unexpected and then the execution would go in the else
statement. However, char
is never re-evaluated in that else
. It would then just loop for retries in the else
. I believe that adding this statement: char = self.getc(1, timeout)
after line 504 would solve this undesirable behavior.
Thanks for your time!