Skip to content

Commit

Permalink
Remove unlocking timer, not really working
Browse files Browse the repository at this point in the history
  • Loading branch information
kauwua committed Jul 20, 2024
1 parent 12fe1ef commit 7658721
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions facedancer/backends/hydradancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,13 +672,8 @@ def send(self, ep_num, data):
Prime target endpoint ep_num.
"""
try:
start_time = time_ns()
MAX_TIME_NS = 1e-3 * 1e9
while not self.in_buffer_empty(ep_num):
events = self.fetch_events()
if (time_ns() - start_time) > MAX_TIME_NS:
logging.debug("Stop waiting to unlock situation")
break
logging.debug(f"Sending len {len(data)} {data} on ep {ep_num}")
self.ep_out[self.endpoints_mapping[ep_num]].write(
data)
Expand Down

0 comments on commit 7658721

Please sign in to comment.