diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-08-09 19:17:57 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-08-10 16:38:59 +0700 |
commit | bf6f6ec0defc2c82257c5305ae2b20ed5efa32f2 (patch) | |
tree | 7da15ae43cf2718c6f1a35ea165ea924a435b765 /python/trx/ctrl_if_bb.py | |
parent | 8e1fa8bdd759899523d2714f79bb28ef4202b659 (diff) |
trx/udp_link.py: close socket in destructor
Previously it was required to call the UDPLink.shutdown() method
manually in order to close a socket. Let's do it automatically
using the destructor of UDPLink.
Cherry-picked from: I59c3dc61ec58cd9effeb789947d28fd602ca91f4
Change-Id: Ief7aa21d1e50682a90616833b679741957193aae
Diffstat (limited to 'python/trx/ctrl_if_bb.py')
-rw-r--r-- | python/trx/ctrl_if_bb.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/python/trx/ctrl_if_bb.py b/python/trx/ctrl_if_bb.py index 5874e59..7886e23 100644 --- a/python/trx/ctrl_if_bb.py +++ b/python/trx/ctrl_if_bb.py @@ -35,10 +35,6 @@ class ctrl_if_bb(ctrl_if): # Power measurement self.pm = pm - def shutdown(self): - print("[i] Shutdown CTRL interface") - ctrl_if.shutdown(self) - def parse_cmd(self, request): # Power control if self.verify_cmd(request, "POWERON", 0): |