Skip to content

Commit

Permalink
close.
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkiwi committed Jun 23, 2024
1 parent 734a493 commit 080442d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gamutrf/grpduzmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def __init__(
self.message_port_register_in(pmt.intern("json"))
self.set_msg_handler(pmt.intern("json"), self.receive_pdu)

def stop(self):
self.zmq_pub.close()

Check warning on line 39 in gamutrf/grpduzmq.py

View check run for this annotation

Codecov / codecov/patch

gamutrf/grpduzmq.py#L39

Added line #L39 was not covered by tests

def receive_pdu(self, pdu):
item = pmt.to_python(pmt.cdr(pdu)).tobytes().decode("utf8").strip()
self.zmq_pub.send_string(item + DELIM, flags=zmq.NOBLOCK)

Check warning on line 43 in gamutrf/grpduzmq.py

View check run for this annotation

Codecov / codecov/patch

gamutrf/grpduzmq.py#L42-L43

Added lines #L42 - L43 were not covered by tests

0 comments on commit 080442d

Please sign in to comment.