aboutsummaryrefslogtreecommitdiff
path: root/src/client/bridge/gateway/mod.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-09-27 10:52:37 -0700
committerZeyla Hellyer <[email protected]>2017-09-27 10:52:37 -0700
commit86d8bddff3e3242186d0c2607b34771e5422ba5b (patch)
tree5dd747da21879fce74c6c14e9e897076256fdbab /src/client/bridge/gateway/mod.rs
parentFix client no-framework compilation (diff)
downloadserenity-86d8bddff3e3242186d0c2607b34771e5422ba5b.tar.xz
serenity-86d8bddff3e3242186d0c2607b34771e5422ba5b.zip
Fix client shards by cloning ShardManager runners
Due to the new ShardManager, `Client::shards` would never fill, so instead clone the `shard_runners` instance from the `ShardManager` to the `Client`.
Diffstat (limited to 'src/client/bridge/gateway/mod.rs')
-rw-r--r--src/client/bridge/gateway/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/bridge/gateway/mod.rs b/src/client/bridge/gateway/mod.rs
index 24170e0..0b873aa 100644
--- a/src/client/bridge/gateway/mod.rs
+++ b/src/client/bridge/gateway/mod.rs
@@ -43,5 +43,6 @@ impl Display for ShardId {
}
pub struct ShardRunnerInfo {
- runner_tx: Sender<ShardManagerMessage>,
+ pub runner_tx: Sender<ShardManagerMessage>,
+ pub shard: Arc<Mutex<Shard>>,
}