diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-02-27 04:40:28 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-02-27 04:40:28 +0700 |
commit | e5480d2c2bc703ed1b387df753220506db2aceec (patch) | |
tree | e42cb34ca650c5321b83e755ef2f884cbff1a4cf /src/target/fake_trx/burst_send.py | |
parent | 05ea7248f8e6c1aed7665efa82eeb92264027f86 (diff) |
fake_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 this automatically
using the destructor of UDPLink.
Change-Id: I59c3dc61ec58cd9effeb789947d28fd602ca91f4
Diffstat (limited to 'src/target/fake_trx/burst_send.py')
-rwxr-xr-x | src/target/fake_trx/burst_send.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/target/fake_trx/burst_send.py b/src/target/fake_trx/burst_send.py index 87f9228b..61a526f6 100755 --- a/src/target/fake_trx/burst_send.py +++ b/src/target/fake_trx/burst_send.py @@ -100,9 +100,6 @@ class Application: # Send message self.data_if.send_msg(msg) - # Finish - self.shutdown() - def msg_pass_filter(self, l12trx, msg): # Direction filter if isinstance(msg, DATAMSG_L12TRX) and not l12trx: @@ -216,13 +213,9 @@ class Application: self.print_help("[!] Please specify a capture file") sys.exit(2) - def shutdown(self): - self.data_if.shutdown() - def sig_handler(self, signum, frame): print("Signal %d received" % signum) if signum is signal.SIGINT: - self.shutdown() sys.exit(0) if __name__ == '__main__': |