Skip to content

Commit

Permalink
fix : add a shutdown method (JabRef#10585)
Browse files Browse the repository at this point in the history
  • Loading branch information
rachedkko committed Mar 3, 2024
1 parent dc161ca commit ad19f5a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ public boolean shouldShow() {
return preferencesService.getEntryEditorPreferences().shouldShowLatexCitationsTab();
}

public void removeListener() {
public void shutdown() {
//remove listeners
if (hasListener) {
try {
listenerOnDirectory(directory.get(), Action.REMOVE);
Expand All @@ -254,8 +255,9 @@ public void removeListener() {
LOGGER.error("Could not remove listener", e);
}
}
fileUpdateMonitor.shutdown();
}

}


0 comments on commit ad19f5a

Please sign in to comment.