mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use project as a disposable parent for the alarm
This commit is contained in:
+1
-1
@@ -1142,7 +1142,7 @@ public class TranslatingCompilerFilesMonitor implements ApplicationComponent {
|
||||
|
||||
conn.subscribe(ProjectTopics.PROJECT_ROOTS, new ModuleRootListener() {
|
||||
private VirtualFile[] myRootsBefore;
|
||||
private Alarm myAlarm = new Alarm(Alarm.ThreadToUse.SHARED_THREAD, conn);
|
||||
private Alarm myAlarm = new Alarm(Alarm.ThreadToUse.SHARED_THREAD, project);
|
||||
|
||||
public void beforeRootsChange(final ModuleRootEvent event) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user