You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
688 B
23 lines
688 B
From a3ff7cc8cd7c4e57a4e6d5a885d515946081239f Mon Sep 17 00:00:00 2001
|
|
From: Cezary Baginski <cezary@chronomantic.net>
|
|
Date: Tue, 3 May 2016 00:03:50 +0200
|
|
Subject: [PATCH] Avoid crashing after fd is closed (fix: #41)
|
|
|
|
---
|
|
lib/rb-inotify/event.rb | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/rb-inotify/event.rb b/lib/rb-inotify/event.rb
|
|
index f6e9551..11701ac 100644
|
|
--- a/lib/rb-inotify/event.rb
|
|
+++ b/lib/rb-inotify/event.rb
|
|
@@ -125,7 +125,7 @@ def initialize(data, notifier)
|
|
#
|
|
# @private
|
|
def callback!
|
|
- watcher.callback!(self)
|
|
+ watcher && watcher.callback!(self)
|
|
end
|
|
|
|
# Returns the size of this event object in bytes,
|