mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[debugger] Add log assert to be sure that coroutineScope is not leaked
GitOrigin-RevId: 870c5f73dc01c678f3f5f75768ca8a9f18e1c610
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8d9bcbbe47
commit
30a5861a38
@@ -247,6 +247,7 @@ class DebuggerManagerThreadImpl(parent: Disposable, private val parentScope: Cor
|
||||
fun restartIfNeeded() {
|
||||
if (myEvents.isClosed) {
|
||||
myEvents.reopen()
|
||||
LOG.assertTrue(!coroutineScope.isActive, "Coroutine scope should be cancelled")
|
||||
coroutineScope = createScope()
|
||||
startNewWorkerThread()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user