Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adjust return value of condvar's recv call to its context

  • Loading branch information...
commit f491b737fd54068f4342c5e6361858ecd38b0a16 1 parent fa7367d
Hojung Youn am0c authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/MuEvent.pm
3  lib/MuEvent.pm
View
@@ -19,7 +19,8 @@ class MuEvent::Condvar {
method recv() {
$since = clock() unless $since.defined;
MuEvent::_poll until $.flag;
- return @.sent but True;
+ return unless @.sent;
+ return @.sent > 1 ?? @.sent !! @.sent[0];
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.