Skip to content

Commit

Permalink
Merge branch 'master' into feat/remove_application_block_until_done
Browse files Browse the repository at this point in the history
  • Loading branch information
yanksyoon authored Jan 30, 2024
2 parents 2f4813c + 6692f3d commit 6f47350
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ run-unit-tests: lint .tox
tox -e py3

.PHONY: run-integration-tests
run-unit-tests: lint .tox
run-integration-tests: lint .tox
tox -e integration

.PHONY: run-all-tests
Expand Down
10 changes: 0 additions & 10 deletions juju/client/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import json
import logging
import ssl
import signal
import urllib.request
import weakref
from http.client import HTTPSConnection
Expand Down Expand Up @@ -425,10 +424,6 @@ def _exit_tasks():
for task in jasyncio.all_tasks():
task.cancel()

loop = jasyncio.get_running_loop()
for sig in (signal.SIGINT, signal.SIGTERM):
loop.add_signal_handler(sig, _exit_tasks)

return (await websockets.connect(
url,
ssl=self._get_ssl(cacert),
Expand Down Expand Up @@ -473,11 +468,6 @@ async def close(self, to_reconnect=False):
if self.proxy is not None:
self.proxy.close()

# Remove signal handlers
loop = jasyncio.get_running_loop()
for sig in (signal.SIGINT, signal.SIGTERM):
loop.remove_signal_handler(sig)

async def _recv(self, request_id):
if not self.is_open:
raise websockets.exceptions.ConnectionClosed(0, 'websocket closed')
Expand Down

0 comments on commit 6f47350

Please sign in to comment.