!1067 fix Tailer stop NPE

Merge pull request !1067 from 蒋小小/v5-dev
This commit is contained in:
Looly 2023-09-08 11:12:24 +00:00 committed by Gitee
commit b357fdcc8a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -174,7 +174,9 @@ public class Tailer implements Serializable {
this.executorService.shutdown();
}finally {
IoUtil.close(this.randomAccessFile);
fileDeleteWatchMonitor.close();
if (fileDeleteWatchMonitor != null) {
fileDeleteWatchMonitor.close();
}
}
}