summaryrefslogtreecommitdiff
path: root/cmd/logwholequeue%2525252525252525253fh%2525252525252525253dv1.0.0&id%25252525252...
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-06-02 16:32:15 +0100
committerNick White <git@njw.name>2020-06-02 16:32:15 +0100
commit7c564921465d2531db9308c14a21ac392fdcb289 (patch)
treebaffa48cf900dae9f29d8fc98b1071c1abf485e5 /cmd/logwholequeue%2525252525252525253fh%2525252525252525253dv1.0.0&id%2525252525252525253da1de8862a091f9584220db40671a0d43346c4519&id2%2525252525252525253dfc6becf5ed98e9c0815532fd76639c15eb481ed1
parent3d27bebcc9f0917923adcecd730d4e046c841276 (diff)
Fix race condition that could cause errors to be silently discarded
This was a nasty one. By closing the up channel, the up() function would finish and send to the done channel. This means that the select between err and done would be random as to which was picked, whereas of course if there has been an error that path must be taken.
Diffstat (limited to 'cmd/logwholequeue%2525252525252525253fh%2525252525252525253dv1.0.0&id%2525252525252525253da1de8862a091f9584220db40671a0d43346c4519&id2%2525252525252525253dfc6becf5ed98e9c0815532fd76639c15eb481ed1')
0 files changed, 0 insertions, 0 deletions