Skip to content

Commit

Permalink
7.5.5
Browse files Browse the repository at this point in the history
FIX: shared/synchronized-files not cleaning old when refreshed config
  • Loading branch information
Osiris-Team committed Dec 22, 2023
1 parent 2518eb7 commit 6bab20c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.osiris.autoplug.client</groupId>
<artifactId>autoplug-client</artifactId>
<version>7.5.4</version>
<version>7.5.5</version>
<packaging>jar</packaging>

<name>AutoPlug-Client</name>
Expand Down Expand Up @@ -91,7 +91,7 @@
<dependency>
<groupId>com.github.Osiris-Team</groupId>
<artifactId>Dyml</artifactId>
<version>9.8.2</version>
<version>9.8.3</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ public class SyncFilesManager {
private static List<File> lastFoldersToWatch = new ArrayList<>();
public SyncFilesManager(SharedFilesConfig sharedFilesConfig) throws Exception {
for (File folder : lastFoldersToWatch) {
// TODO does this also clean sub-dir listeners?
DirWatcher.get(folder, false).removeAllListeners(true);
DirWatcher dirWatcher = DirWatcher.get(folder, false);
dirWatcher.removeAllListeners(true);
dirWatcher.close();
}

List<File> foldersToWatch = new ArrayList<>();
Expand Down

0 comments on commit 6bab20c

Please sign in to comment.