We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65821e9 commit 631d5d2Copy full SHA for 631d5d2
vxi11/vxi11.py
@@ -578,8 +578,6 @@ def open(self):
578
raise Vxi11Exception(error, 'open')
579
580
self.abort_port = abort_port
581
- self.abort_client = AbortClient(self.host, abort_port)
582
- self.abort_client.sock.settimeout(self.timeout)
583
584
self.link = link
585
self.max_recv_size = min(max_recv_size, 1024*1024)
@@ -599,7 +597,10 @@ def abort(self):
599
597
if self.link is None:
600
598
self.open()
601
602
- self.abort_client.sock.settimeout(1.0)
+ if self.abort_client is None:
+ self.abort_client = AbortClient(self.host, self.abort_port)
+ self.abort_client.sock.settimeout(self.timeout)
603
+
604
error = self.abort_client.device_abort(self.link)
605
606
if error:
0 commit comments