diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-08-22 18:46:37 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-08-22 18:46:37 +0200 |
| commit | d41af72a9673728cfe9390e31cb4e67da31fc355 (patch) | |
| tree | 3951df72f57737e30aa012d33c8bac135a2e6e84 /wrappers/python | |
| parent | 9c4da0277824c4d27cae4bc3f29d9c9708da3864 (diff) | |
State + Exports: Make cleanup optional when entering disconnect
Diffstat (limited to 'wrappers/python')
| -rw-r--r-- | wrappers/python/src/__init__.py | 2 | ||||
| -rw-r--r-- | wrappers/python/src/main.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/wrappers/python/src/__init__.py b/wrappers/python/src/__init__.py index 761adf5..74a529d 100644 --- a/wrappers/python/src/__init__.py +++ b/wrappers/python/src/__init__.py @@ -85,7 +85,7 @@ lib.SetSecureLocation.argtypes, lib.SetSecureLocation.restype = [ lib.SetConnected.argtypes, lib.SetConnected.restype = [c_char_p], c_void_p lib.SetDisconnecting.argtypes, lib.SetDisconnecting.restype = [c_char_p], c_void_p lib.SetConnecting.argtypes, lib.SetConnecting.restype = [c_char_p], c_void_p -lib.SetDisconnected.argtypes, lib.SetDisconnected.restype = [c_char_p], c_void_p +lib.SetDisconnected.argtypes, lib.SetDisconnected.restype = [c_char_p, c_int], c_void_p lib.SetSearchServer.argtypes, lib.SetSearchServer.restype = [c_char_p], c_void_p lib.ShouldRenewButton.argtypes, lib.ShouldRenewButton.restype = [], int lib.RenewSession.argtypes, lib.RenewSession.restype = [c_char_p], c_void_p diff --git a/wrappers/python/src/main.py b/wrappers/python/src/main.py index 574d0e2..e70d431 100644 --- a/wrappers/python/src/main.py +++ b/wrappers/python/src/main.py @@ -157,8 +157,8 @@ class EduVPN(object): if connecting_err: raise Exception(connecting_err) - def set_disconnected(self) -> None: - disconnect_err = self.go_function(lib.SetDisconnected) + def set_disconnected(self, cleanup=True) -> None: + disconnect_err = self.go_function(lib.SetDisconnected, cleanup) if disconnect_err: raise Exception(disconnect_err) |
