Commit ed2c4166 authored by Elvis Pranskevichus's avatar Elvis Pranskevichus

Shutdown socket before closing

parent db5b7881
...@@ -224,6 +224,7 @@ def start_and_wait_for_server(server_cmd, address, timeout=60): ...@@ -224,6 +224,7 @@ def start_and_wait_for_server(server_cmd, address, timeout=60):
'----------------------\n' + '----------------------\n' +
'\n\n'.join(server.communicate())) '\n\n'.join(server.communicate()))
else: else:
sock.shutdown(socket.SHUT_RDWR)
sock.close() sock.close()
return server return server
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment