We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 683b4e8 commit 27cad32Copy full SHA for 27cad32
src/gh/components/DF_tcp_listener/code.py
@@ -4,6 +4,7 @@
4
import socket
5
import threading
6
import json
7
+import time
8
import scriptcontext as sc
9
import Rhino.Geometry as rg
10
import System.Drawing as sd
@@ -66,6 +67,7 @@ def handle_client(conn):
66
67
sc.sticky[f'{prefix}_cloud_buffer_raw'] = raw
68
except Exception:
69
break
70
+ time.sleep(0.05) # sleep briefly to prevent CPU spin
71
72
# thread to accept incoming connections
73
def server_loop(sock):
0 commit comments