File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 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() {
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 ) {
You can’t perform that action at this time.
0 commit comments