mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 10:56:10 +00:00
[python-client] Thread pool fix (#6396)
* [python-client] Added close() and join() for threadpool at ApiClient destructor. * Updated stuff for CI
This commit is contained in:
committed by
wing328
parent
0f1a61d9c2
commit
a28ce0b604
@@ -94,7 +94,7 @@ This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**dict(str, int)**](dict.md)
|
||||
**dict(str, int)**
|
||||
|
||||
### Authorization
|
||||
|
||||
|
||||
@@ -72,6 +72,10 @@ class ApiClient(object):
|
||||
self.cookie = cookie
|
||||
# Set default User-Agent.
|
||||
self.user_agent = 'Swagger-Codegen/1.0.0/python'
|
||||
|
||||
def __del__(self):
|
||||
self.pool.close()
|
||||
self.pool.join()
|
||||
|
||||
@property
|
||||
def user_agent(self):
|
||||
|
||||
Reference in New Issue
Block a user