File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
third_party/src/main/java/com/jetbrains/lang/dart/ide/runner/server/vmService Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ private void addRequest(@NotNull Runnable runnable) {
8585 private void assertSyncRequestAllowed () {
8686 ThreadingAssertions .assertBackgroundThread ();
8787 ThreadingAssertions .assertNoReadAccess ();
88- if (myVmServiceReceiverThreadId == Thread .currentThread ().getId ()) {
88+ if (myVmServiceReceiverThreadId == Thread .currentThread ().threadId ()) {
8989 LOG .error ("Synchronous requests must not be made in Web Socket listening thread: answer will never be received" );
9090 }
9191 }
@@ -94,7 +94,7 @@ public void handleDebuggerConnected() {
9494 streamListen (VmService .DEBUG_STREAM_ID , new VmServiceConsumers .SuccessConsumerWrapper () {
9595 @ Override
9696 public void received (final Success success ) {
97- myVmServiceReceiverThreadId = Thread .currentThread ().getId ();
97+ myVmServiceReceiverThreadId = Thread .currentThread ().threadId ();
9898 streamListen (VmService .ISOLATE_STREAM_ID , new VmServiceConsumers .SuccessConsumerWrapper () {
9999 @ Override
100100 public void received (final Success success ) {
You can’t perform that action at this time.
0 commit comments