diff options
| author | Austin Hellyer <[email protected]> | 2016-11-29 20:51:10 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-29 22:27:59 -0800 |
| commit | 93b990d8d1bc9df69b8e27a3db61da570822aad6 (patch) | |
| tree | 6305cf635df90681527a8e736f65ff19f21fd8bc /src/ext/voice/threading.rs | |
| parent | Add more shiny readme badges (diff) | |
| download | serenity-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.rs | 8 |
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); |