Skip to content

Commit

Permalink
Replace task._finished with task.done()
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Forencich <alex@alexforencich.com>
  • Loading branch information
alexforencich committed Jun 24, 2023
1 parent a0c4983 commit ac7450e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocotbext/pcie/core/port.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def handle_dllp(self, dllp):

def start_ack_latency_timer(self):
if self._ack_latency_timer_cr is not None:
if not self._ack_latency_timer_cr._finished:
if not self._ack_latency_timer_cr.done():
# already running
return
self._ack_latency_timer_cr = cocotb.start_soon(self._run_ack_latency_timer())
Expand All @@ -627,7 +627,7 @@ async def _run_ack_latency_timer(self):

def start_fc_update_timer(self):
if self._fc_update_timer_cr is not None:
if not self._fc_update_timer_cr._finished:
if not self._fc_update_timer_cr.done():
# already running
return
self._fc_update_timer_cr = cocotb.start_soon(self._run_fc_update_timer())
Expand Down

0 comments on commit ac7450e

Please sign in to comment.