Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Return the correct type from the Monitor#run! function

This fixes a crash that happened sometimes while more that one monitor
was running.
  • Loading branch information...
commit bfce9f9d57daf32b6714cd535914abf7b961324d 1 parent 9d1ef70
@Maher4Ever authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/wdm/rb_monitor.c
View
4 ext/wdm/rb_monitor.c
@@ -447,7 +447,7 @@ rb_monitor_run_bang(VALUE self) {
if (already_running) {
WDM_DEBUG("Not doing anything because the monitor is already running!");
- return;
+ return Qnil;
}
// Reset events
@@ -476,7 +476,7 @@ rb_monitor_run_bang(VALUE self) {
if ( ! monitor->running ) {
wdm_queue_empty(monitor->changes);
- return;
+ return Qnil;
}
process_changes(monitor->changes);
Please sign in to comment.
Something went wrong with that request. Please try again.