Watch files add empty check. (#3035)

* watch files add empty check.

* watch files add empty check.

Co-authored-by: yanlinly <yan.lin2009@163.com>
This commit is contained in:
keker 2020-06-15 13:48:35 +08:00 committed by GitHub
parent 3f0023a3a9
commit 4c0ba562ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,6 +189,9 @@ public class WatchFileCenter {
if (callBackExecutor.isShutdown()) {
return;
}
if(events.isEmpty()) {
continue;
}
callBackExecutor.execute(new Runnable() {
@Override
public void run() {