Fixes a few problems in Dynamips implementation.

This commit is contained in:
grossmj
2015-02-12 19:15:35 -07:00
parent 79a57ca420
commit 8f089c45f5
5 changed files with 34 additions and 18 deletions

View File

@ -128,8 +128,9 @@ class DynamipsHypervisor:
"""
yield from self.send("hypervisor stop")
yield from self._writer.drain()
self._writer.close()
self._reader, self._writer = None
self._reader = self._writer = None
self._nio_udp_auto_instances.clear()
@asyncio.coroutine