diff options
author | Joey Hess <joey@kitenet.net> | 2012-08-05 15:14:21 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-08-05 15:18:56 -0400 |
commit | 7478872a095ef9b05ce9124f9b1f5be2773065a8 (patch) | |
tree | ffbd604fcc2d75795e9a2ebde6bcbea24c4389a9 /Assistant.hs | |
parent | ac71ab7bd7dded89202fde4a1f725dac32c7cd3c (diff) |
fix crash when just one remote needs to be scanned
The TMVar is supposed to be left empty once the map is empty, but the code
neglected to do that, so the next time takeMVar got an empty map, which
is not handled since that was supposed to never happen..
Also, avoid any possibility of this crash. If an empty map somehow creeps
in, just retry.
Diffstat (limited to 'Assistant.hs')
0 files changed, 0 insertions, 0 deletions