Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

ignore 'ignore' event for unwatched file

  • Loading branch information...
commit 5f36d9e6f8e36ef38ae51a2230f4c7a1524074c2 1 parent c84ab1c
mats cronqvist authored

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 src/inoteefy.erl
5 src/inoteefy.erl
@@ -77,7 +77,10 @@ take_first(F,[H|T]) ->
77 77 maybe_call_back({event,WD,Mask,Cookie,Name}) ->
78 78 case get({wd,WD}) of
79 79 undefined ->
80   - ?log([{got_event_without_callback,WD}]);
  80 + case Mask of
  81 + [ignored] -> ok;
  82 + _ -> ?log([{got_event_without_callback,WD,Mask,Cookie,Name}])
  83 + end;
81 84 {Filename,_FD,CB} ->
82 85 try CB({Filename,Mask,Cookie,Name})
83 86 catch C:R -> ?log([{callback_failed,Filename},{C,R}])

0 comments on commit 5f36d9e

Please sign in to comment.
Something went wrong with that request. Please try again.