diff options
-rw-r--r-- | lib/rbot/compat19.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbot/compat19.rb b/lib/rbot/compat19.rb index fbb68477..c32d1ecb 100644 --- a/lib/rbot/compat19.rb +++ b/lib/rbot/compat19.rb @@ -45,6 +45,8 @@ module MonitorMixin begin @cond.wait(@monitor.instance_variable_get("@mon_mutex"), timeout) return true + rescue TimeoutError + return false ensure @monitor.__send__(:mon_enter_for_cond, count) end |