Skip to content

Commit 6eae02f

Browse files
committed
1 parent 81d0746 commit 6eae02f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flutter-idea/src/io/flutter/vmService/VmServiceWrapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private void assertSyncRequestAllowed() {
114114
if (ApplicationManager.getApplication().isReadAccessAllowed()) {
115115
LOG.error("Waiting for the answer from the Dart debugger under read action may lead to EDT freeze");
116116
}
117-
if (myVmServiceReceiverThreadId == Thread.currentThread().getId()) {
117+
if (myVmServiceReceiverThreadId == Thread.currentThread().threadId()) {
118118
LOG.error("Synchronous requests must not be made in Web Socket listening thread: answer will never be received");
119119
}
120120
}
@@ -123,7 +123,7 @@ public void handleDebuggerConnected() {
123123
streamListen(VmService.DEBUG_STREAM_ID, new VmServiceConsumers.SuccessConsumerWrapper() {
124124
@Override
125125
public void received(final Success success) {
126-
myVmServiceReceiverThreadId = Thread.currentThread().getId();
126+
myVmServiceReceiverThreadId = Thread.currentThread().threadId();
127127
streamListen(VmService.ISOLATE_STREAM_ID, new VmServiceConsumers.SuccessConsumerWrapper() {
128128
@Override
129129
public void received(final Success success) {

0 commit comments

Comments
 (0)