Skip to content

Commit 9f0f79f

Browse files
authored
Revert "Only create wsdl document once" (#20)
1 parent c2fe392 commit 9f0f79f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

onvif/client.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from zeep.cache import SqliteCache
1414
from zeep.client import AsyncClient as BaseZeepAsyncClient, Settings
1515
from zeep.exceptions import Fault
16-
from zeep.wsdl import Document
1716
import zeep.helpers
1817
from zeep.proxy import AsyncServiceProxy
1918
from zeep.transports import AsyncTransport
@@ -178,9 +177,8 @@ def __init__(
178177
settings = Settings()
179178
settings.strict = False
180179
settings.xml_huge_tree = True
181-
wsdl = Document(url, self.transport, settings)
182180
self.zeep_client_authless = ZeepAsyncClient(
183-
wsdl=wsdl,
181+
wsdl=url,
184182
transport=self.transport,
185183
settings=settings,
186184
plugins=[WsAddressingPlugin()],
@@ -190,7 +188,7 @@ def __init__(
190188
)
191189

192190
self.zeep_client = ZeepAsyncClient(
193-
wsdl=wsdl,
191+
wsdl=url,
194192
wsse=wsse,
195193
transport=self.transport,
196194
settings=settings,

0 commit comments

Comments
 (0)