{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3114","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3114/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3114/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3114/events","html_url":"https://github.com/spring-projects/spring-boot/pull/3114","id":85003795,"number":3114,"title":"Stop file watcher as soon as a change is detected","user":{"login":"dsyer","id":124075,"avatar_url":"https://avatars.githubusercontent.com/u/124075?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyer","html_url":"https://github.com/dsyer","followers_url":"https://api.github.com/users/dsyer/followers","following_url":"https://api.github.com/users/dsyer/following{/other_user}","gists_url":"https://api.github.com/users/dsyer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyer/subscriptions","organizations_url":"https://api.github.com/users/dsyer/orgs","repos_url":"https://api.github.com/users/dsyer/repos","events_url":"https://api.github.com/users/dsyer/events{/privacy}","received_events_url":"https://api.github.com/users/dsyer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-04T09:29:54Z","updated_at":"2015-06-17T01:48:45Z","closed_at":"2015-06-17T01:48:45Z","pull_request":{"url":"https://api.github.com/repos/spring-projects/spring-boot/pulls/3114","html_url":"https://github.com/spring-projects/spring-boot/pull/3114","diff_url":"https://github.com/spring-projects/spring-boot/pull/3114.diff","patch_url":"https://github.com/spring-projects/spring-boot/pull/3114.patch"},"body":"The FileWatcher sometimes generates multiple events for a single\nchange and if there is a slow shutdown hook the second one can\ncome in before the context is closed, leaving it in a tricky\nstate. This change attempts to stop the file watcher as soon\nas it detects a change (the stop() method is called in the\nlistener, which normally happens in the same thread as the\nscan).\n\nFixes gh-3097"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/112621574","html_url":"https://github.com/spring-projects/spring-boot/pull/3114#issuecomment-112621574","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3114","id":112621574,"user":{"login":"philwebb","id":519772,"avatar_url":"https://avatars.githubusercontent.com/u/519772?v=3","gravatar_id":"","url":"https://api.github.com/users/philwebb","html_url":"https://github.com/philwebb","followers_url":"https://api.github.com/users/philwebb/followers","following_url":"https://api.github.com/users/philwebb/following{/other_user}","gists_url":"https://api.github.com/users/philwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/philwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwebb/subscriptions","organizations_url":"https://api.github.com/users/philwebb/orgs","repos_url":"https://api.github.com/users/philwebb/repos","events_url":"https://api.github.com/users/philwebb/events{/privacy}","received_events_url":"https://api.github.com/users/philwebb/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T01:48:45Z","updated_at":"2015-06-17T01:48:45Z","body":"Fixed by commit b47af19"}}