Skip to content

Commit

Permalink
Исправление ошибки отключения от сервера при смене варианта подключения
Browse files Browse the repository at this point in the history
  • Loading branch information
YanSergey committed May 10, 2024
1 parent a26d9b4 commit 541e454
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1099,10 +1099,11 @@ public void disconnectFromAgent() {
}

private void disconnectLocalRas() {
if (useLocalRas && localRasProcess.isAlive()) {
if (localRasProcess != null && localRasProcess.isAlive()) {
Stream<ProcessHandle> ch = localRasProcess.children();
ch.forEach(ProcessHandle::destroy);
localRasProcess.destroy();
localRasProcess = null;
LOGGER.info(
"Local RAS of Server <{}> is shutdown now", //$NON-NLS-1$
this.getServerKey());
Expand Down

0 comments on commit 541e454

Please sign in to comment.