Skip to content

Commit 4ae57f1

Browse files
committed
touch ups
1 parent b4b34e5 commit 4ae57f1

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

onvif/zeep_aiohttp.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,6 @@ async def _post(
165165
headers.setdefault("User-Agent", f"Zeep/{get_version()}")
166166
headers.setdefault("Content-Type", 'text/xml; charset="utf-8"')
167167

168-
# Determine timeout
169-
timeout = self.operation_timeout or self.timeout
170-
if timeout:
171-
client_timeout = ClientTimeout(total=timeout)
172-
else:
173-
client_timeout = None
174-
175168
# Handle both str and bytes
176169
if isinstance(message, str):
177170
data = message.encode("utf-8")
@@ -184,7 +177,7 @@ async def _post(
184177
data=data,
185178
headers=headers,
186179
proxy=self.proxy,
187-
timeout=client_timeout,
180+
timeout=self._client_timeout,
188181
)
189182
response.raise_for_status()
190183

0 commit comments

Comments
 (0)