We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5601f19 commit 7c76ff7Copy full SHA for 7c76ff7
1 file changed
azure/durable_functions/models/utils/http_utils.py
@@ -54,8 +54,10 @@ async def _handle_request_error():
54
global _client_session
55
async with _session_lock:
56
if _client_session is not None and not _client_session.closed:
57
- await _client_session.close()
58
- _client_session = None
+ try:
+ await _client_session.close()
59
+ finally:
60
+ _client_session = None
61
62
63
async def _close_session() -> None:
@@ -67,8 +69,10 @@ async def _close_session() -> None:
67
69
68
70
71
72
73
74
75
76
77
78
async def post_async_request(url: str,
0 commit comments