Skip to content

Commit 53b0b57

Browse files
committed
1 parent ab7fc44 commit 53b0b57

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

third_party/src/main/java/com/jetbrains/lang/dart/ide/runner/server/vmService/VmServiceWrapper.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.intellij.openapi.vfs.VirtualFile;
1616
import com.intellij.util.Alarm;
1717
import com.intellij.util.concurrency.Semaphore;
18+
import com.intellij.util.concurrency.ThreadingAssertions;
1819
import com.intellij.xdebugger.XDebugSession;
1920
import com.intellij.xdebugger.XSourcePosition;
2021
import com.intellij.xdebugger.breakpoints.XBreakpointProperties;
@@ -82,8 +83,8 @@ private void addRequest(@NotNull Runnable runnable) {
8283
}
8384

8485
private void assertSyncRequestAllowed() {
85-
ApplicationManager.getApplication().assertIsNonDispatchThread();
86-
ApplicationManager.getApplication().assertReadAccessNotAllowed();
86+
ThreadingAssertions.assertBackgroundThread();
87+
ThreadingAssertions.assertNoReadAccess();
8788
if (myVmServiceReceiverThreadId == Thread.currentThread().getId()) {
8889
LOG.error("Synchronous requests must not be made in Web Socket listening thread: answer will never be received");
8990
}

0 commit comments

Comments
 (0)