aboutsummaryrefslogtreecommitdiff
path: root/pulse/src/communication.rs
diff options
context:
space:
mode:
Diffstat (limited to 'pulse/src/communication.rs')
-rw-r--r--pulse/src/communication.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/pulse/src/communication.rs b/pulse/src/communication.rs
index 51456d9..ce31875 100644
--- a/pulse/src/communication.rs
+++ b/pulse/src/communication.rs
@@ -21,7 +21,7 @@ impl<'p> SenderForMain {
}
fn send(&self, message : MessagesFromMain) -> Result<(), PluginCommunicationError> {
- if let Ok(_) = self.sender.send(message) {
+ if self.sender.send(message).is_ok() {
//The cool thing about pulse using poll() is that poll() also wakes up if started after
//the actual wake up call. So no need to worry about races, this is inherently sane!
self.pulse_waker.as_ref().ok_or(PluginCommunicationError {})?.wake_up()?;