File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
flutter-idea/src/io/flutter/vmService Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ private void assertSyncRequestAllowed() {
114
114
if (ApplicationManager .getApplication ().isReadAccessAllowed ()) {
115
115
LOG .error ("Waiting for the answer from the Dart debugger under read action may lead to EDT freeze" );
116
116
}
117
- if (myVmServiceReceiverThreadId == Thread .currentThread ().getId ()) {
117
+ if (myVmServiceReceiverThreadId == Thread .currentThread ().threadId ()) {
118
118
LOG .error ("Synchronous requests must not be made in Web Socket listening thread: answer will never be received" );
119
119
}
120
120
}
@@ -123,7 +123,7 @@ public void handleDebuggerConnected() {
123
123
streamListen (VmService .DEBUG_STREAM_ID , new VmServiceConsumers .SuccessConsumerWrapper () {
124
124
@ Override
125
125
public void received (final Success success ) {
126
- myVmServiceReceiverThreadId = Thread .currentThread ().getId ();
126
+ myVmServiceReceiverThreadId = Thread .currentThread ().threadId ();
127
127
streamListen (VmService .ISOLATE_STREAM_ID , new VmServiceConsumers .SuccessConsumerWrapper () {
128
128
@ Override
129
129
public void received (final Success success ) {
You can’t perform that action at this time.
0 commit comments