mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -51,7 +51,7 @@ class ProcessHandlerWrapper(private val debugProcess: XDebugProcess, private val
|
||||
}
|
||||
|
||||
debugProcess.stopAsync()
|
||||
.onSuccess() { stopProcess(destroy) }
|
||||
.onSuccess { stopProcess(destroy) }
|
||||
.onError {
|
||||
try {
|
||||
LOG.error(it)
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
/*
|
||||
* Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
*/
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
|
||||
package com.intellij.xdebugger;
|
||||
|
||||
@@ -169,7 +167,7 @@ public abstract class XDebugProcess {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public Promise stopAsync() {
|
||||
public Promise<Void> stopAsync() {
|
||||
stop();
|
||||
return Promises.resolvedPromise();
|
||||
}
|
||||
|
||||
@@ -890,7 +890,6 @@ public class XDebugSessionImpl implements XDebugSession {
|
||||
removeBreakpointListeners();
|
||||
}
|
||||
finally {
|
||||
//noinspection unchecked
|
||||
myDebugProcess.stopAsync().onSuccess(aVoid -> {
|
||||
if (!myProject.isDisposed()) {
|
||||
myProject.getMessageBus().syncPublisher(XDebuggerManager.TOPIC).processStopped(myDebugProcess);
|
||||
|
||||
Reference in New Issue
Block a user