Skip to content

Commit

Permalink
完善文档
Browse files Browse the repository at this point in the history
  • Loading branch information
wushuo894 committed Jun 9, 2024
1 parent 57c5b61 commit c384780
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/src/main/java/wallpaper/video/util/ProjectUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static void loadList() {
* 监控目录变化实时更新目录
*/
public static void startWatch() {
try (WatchMonitor watchMonitor = WatchMonitor.createAll(path, new SimpleWatcher() {
WatchMonitor.createAll(path, new SimpleWatcher() {
@Override
public void onCreate(WatchEvent<?> event, Path currentPath) {
loadList();
Expand All @@ -95,8 +95,6 @@ public void onModify(WatchEvent<?> event, Path currentPath) {
public void onDelete(WatchEvent<?> event, Path currentPath) {
loadList();
}
})) {
watchMonitor.start();
}
}).start();
}
}

0 comments on commit c384780

Please sign in to comment.