diff options
Diffstat (limited to 'wrappers')
| -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) |
