summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/progressbar/compat.py
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2024-04-12 14:28:16 -0600
committerChee Yang Lee <chee.yang.lee@intel.com>2024-04-12 14:42:54 -0700
commit150f45c53cf3cadf5c5171a78bcdce35733c744d (patch)
treec9e7ff05db3977286a2642dc1af1a61635a415fd /bitbake/lib/progressbar/compat.py
parent5950c63d54228f15a973d8d8c843b0dc9987ab7f (diff)
downloadpoky-halstead/hashclient.tar.gz
hashserv: client: Fix mode state errorshalstead/hashclient
Careful reading of the code can contrive cases where poorly timed ConnectionError's will result in the client mode being incorrectly reset to MODE_NORMAL when it should actual be a stream mode for the current command. Fix this by no longer attempting to restore the mode when the connection is setup. Instead, attempt to set the stream mode inside the send wrapper for the stream data, which means that it should always end up in the correct mode before continuing. Also, factor out the transition to normal mode into a invoke() override so it doesn't need to be specified over and over again. Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Diffstat (limited to 'bitbake/lib/progressbar/compat.py')
0 files changed, 0 insertions, 0 deletions