Skip to content

Commit

Permalink
Possibly fix the closing of shards
Browse files Browse the repository at this point in the history
  • Loading branch information
arqunis committed Jul 16, 2017
1 parent 9900b20 commit d8027d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -815,8 +815,7 @@ fn monitor_shard<H: EventHandler + 'static>(mut info: MonitorInfo<H>, handle: Ha

fn handle_shard<H: EventHandler + 'static>(info: &mut MonitorInfo<H>, handle: &Handle) {
// This is currently all ducktape. Redo this.
let handle_still = HANDLE_STILL.load(Ordering::Relaxed);
while handle_still {
while HANDLE_STILL.load(Ordering::Relaxed) {
{
let mut shard = info.shard.lock();

Expand Down

0 comments on commit d8027d7

Please sign in to comment.