Skip to content

Commit 6efc0ae

Browse files
authored
Remove unnecessary stops
1 parent 21dbc4d commit 6efc0ae

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎python3/vdebug/connection.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ def start(self, host='', proxy_host = '', proxy_port = 9001, idekey = None, port
130130
self.proxyinit(proxy_host, proxy_port, port, idekey)
131131
self.__sock = self.accept(serv, timeout)
132132
except socket.timeout:
133-
self.proxystop()
134133
raise TimeoutError("Timeout waiting for connection")
135134
finally:
136135
self.proxystop(proxy_host, proxy_port, idekey)
@@ -251,19 +250,16 @@ async def run_async(self):
251250
# No connection
252251
pass
253252
except socket.error as socket_error:
254-
await self.proxystop()
255253
self.log("Error: %s" % str(sys.exc_info()))
256254
self.log("Stopping server")
257255

258256
if socket_error.errno == errno.EADDRINUSE:
259257
self.log("Address already in use")
260258
print("Socket is already in use")
261259
except asyncio.CancelledError as e:
262-
await self.proxystop()
263260
self.log("Stopping server")
264261
self.__socket_task = None
265262
except Exception as e:
266-
await self.proxystop()
267263
print("Exception caught")
268264
self.log("Error: %s" % str(sys.exc_info()))
269265
self.log("Stopping server")

0 commit comments

Comments
 (0)