aboutsummaryrefslogtreecommitdiff
path: root/src/ext/voice/threading.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-29 20:51:10 -0800
committerAustin Hellyer <[email protected]>2016-11-29 22:27:59 -0800
commit93b990d8d1bc9df69b8e27a3db61da570822aad6 (patch)
tree6305cf635df90681527a8e736f65ff19f21fd8bc /src/ext/voice/threading.rs
parentAdd more shiny readme badges (diff)
downloadserenity-93b990d8d1bc9df69b8e27a3db61da570822aad6.tar.xz
serenity-93b990d8d1bc9df69b8e27a3db61da570822aad6.zip
Clean up the codebase
Diffstat (limited to 'src/ext/voice/threading.rs')
-rw-r--r--src/ext/voice/threading.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ext/voice/threading.rs b/src/ext/voice/threading.rs
index bbbffd1..8d3599b 100644
--- a/src/ext/voice/threading.rs
+++ b/src/ext/voice/threading.rs
@@ -66,11 +66,11 @@ fn runner(rx: MpscReceiver<Status>) {
// another event.
let error = match connection.as_mut() {
Some(connection) => {
- let update = connection.update(&mut sender,
- &mut receiver,
- &mut timer);
+ let cycle = connection.cycle(&mut sender,
+ &mut receiver,
+ &mut timer);
- match update {
+ match cycle {
Ok(()) => false,
Err(why) => {
error!("[Voice] Error updating connection: {:?}", why);