From 517042891360e07f7812daf50c1ef3353f76b13e Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 17 Feb 2015 10:01:15 +0100 Subject: [PATCH] Fix a capture crash --- gns3server/modules/iou/iou_vm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gns3server/modules/iou/iou_vm.py b/gns3server/modules/iou/iou_vm.py index 73a919c8..a67a0e13 100644 --- a/gns3server/modules/iou/iou_vm.py +++ b/gns3server/modules/iou/iou_vm.py @@ -343,7 +343,6 @@ class IOUVM(BaseVM): log.warn("Could not determine the shared library dependencies for {}: {}".format(self._path, e)) return - print(output) p = re.compile("([\.\w]+)\s=>\s+not found") missing_libs = p.findall(output) if missing_libs: @@ -890,6 +889,7 @@ class IOUVM(BaseVM): else: return None + @asyncio.coroutine def start_capture(self, adapter_number, port_number, output_file, data_link_type="DLT_EN10MB"): """ Starts a packet capture. @@ -933,6 +933,7 @@ class IOUVM(BaseVM): self._update_iouyap_config() os.kill(self._iouyap_process.pid, signal.SIGHUP) + @asyncio.coroutine def stop_capture(self, adapter_number, port_number): """ Stops a packet capture.