mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
gracefully shutdown preloaded project
This commit is contained in:
@@ -277,7 +277,13 @@ public class BuildMain {
|
||||
else {
|
||||
try {
|
||||
LOG.info("Build canceled, but no build session is running. Exiting.");
|
||||
Thread.interrupted(); // to clear 'interrupted' flag
|
||||
channel.close();
|
||||
final PreloadedData preloaded = ourPreloadedData;
|
||||
final ProjectDescriptor pd = preloaded != null? preloaded.getProjectDescriptor() : null;
|
||||
if (pd != null) {
|
||||
pd.release();
|
||||
}
|
||||
}
|
||||
finally {
|
||||
System.exit(0);
|
||||
|
||||
Reference in New Issue
Block a user