mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-22 00:41:56 +00:00
Merge branch '2.2' into 3.0
# Conflicts: # README.md # gns3server/compute/base_node.py # gns3server/compute/dynamips/__init__.py # gns3server/compute/dynamips/hypervisor.py # gns3server/compute/qemu/__init__.py # gns3server/compute/qemu/qemu_vm.py # gns3server/controller/__init__.py # gns3server/crash_report.py # gns3server/handlers/api/controller/node_handler.py # gns3server/schemas/qemu_template.py # gns3server/static/web-ui/index.html # gns3server/static/web-ui/main.11410ae4eaf4d4c08cd0.js # gns3server/version.py # requirements.txt
This commit is contained in:
@ -14,6 +14,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import sys
|
||||
import socket
|
||||
import asyncio
|
||||
import asyncio.subprocess
|
||||
@ -200,7 +201,7 @@ class AsyncioTelnetServer:
|
||||
except ConnectionError:
|
||||
async with self._lock:
|
||||
network_writer.close()
|
||||
await network_writer.wait_closed()
|
||||
# await network_writer.wait_closed() # this doesn't work in Python 3.6
|
||||
if self._reader_process == network_reader:
|
||||
self._reader_process = None
|
||||
# Cancel current read from this reader
|
||||
@ -216,7 +217,7 @@ class AsyncioTelnetServer:
|
||||
writer.write_eof()
|
||||
await writer.drain()
|
||||
writer.close()
|
||||
await writer.wait_closed()
|
||||
# await writer.wait_closed() # this doesn't work in Python 3.6
|
||||
except (AttributeError, ConnectionError):
|
||||
continue
|
||||
|
||||
|
Reference in New Issue
Block a user