Permalink
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...
Maher4Ever committed Jul 24, 2012
1 parent 9d1ef70 commit bfce9f9d57daf32b6714cd535914abf7b961324d
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/wdm/rb_monitor.c
View
@@ -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);

0 comments on commit bfce9f9

Please sign in to comment.