mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix Tailer stop NPE
This commit is contained in:
parent
80bdac99d9
commit
83c82f8e5b
@ -174,7 +174,9 @@ public class Tailer implements Serializable {
|
|||||||
this.executorService.shutdown();
|
this.executorService.shutdown();
|
||||||
}finally {
|
}finally {
|
||||||
IoUtil.close(this.randomAccessFile);
|
IoUtil.close(this.randomAccessFile);
|
||||||
fileDeleteWatchMonitor.close();
|
if (fileDeleteWatchMonitor != null) {
|
||||||
|
fileDeleteWatchMonitor.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user