diff options
| author | acdenisSK <[email protected]> | 2017-07-16 02:10:44 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-07-16 02:10:44 +0200 |
| commit | d8027d7a3b9521565faa829f865c6248b3ba26c5 (patch) | |
| tree | aaf5b102a8e1d659a43e850bd21b0b1e1d36804d /src/client | |
| parent | Add a close handle for closing the shards in another thread (diff) | |
| download | serenity-d8027d7a3b9521565faa829f865c6248b3ba26c5.tar.xz serenity-d8027d7a3b9521565faa829f865c6248b3ba26c5.zip | |
Possibly fix the closing of shards
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index 428d773..b80b6ac 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -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(); |