mirror of
https://codeberg.org/reflect/reflect-client-python.git
synced 2025-09-14 09:33:41 +02:00
wip: 2023-06-05T12:12:07+0200 (1685959927)
This commit is contained in:
parent
13e7e5301a
commit
93c91b8f77
2 changed files with 4 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -15,6 +15,7 @@ Homestead.yaml
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
public/robots.txt
|
public/robots.txt
|
||||||
|
__pycache__
|
||||||
|
|
||||||
# OS generated files #
|
# OS generated files #
|
||||||
######################
|
######################
|
||||||
|
|
|
@ -47,6 +47,8 @@ class Client:
|
||||||
|
|
||||||
# Close socket connection when class instance removed
|
# Close socket connection when class instance removed
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
|
# Close socket if connected
|
||||||
|
if (self._con == Connection.AF_UNIX):
|
||||||
self._socket.close()
|
self._socket.close()
|
||||||
|
|
||||||
# Resolve connection type from endpoint string.
|
# Resolve connection type from endpoint string.
|
||||||
|
|
Loading…
Add table
Reference in a new issue