diff --git a/schwab/auth.py b/schwab/auth.py index 46206f5..a717c5d 100644 --- a/schwab/auth.py +++ b/schwab/auth.py @@ -312,7 +312,7 @@ def kill_server(): now = __TIME_TIME() # Clean up and create the client - psutil.Process(server.pid).kill() + kill_server() if callback_url: return __fetch_and_register_token_from_redirect(