diff options
Diffstat (limited to 'src/manager/manager.c')
-rw-r--r-- | src/manager/manager.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/manager/manager.c b/src/manager/manager.c index dc27f86a6..b09d8d339 100644 --- a/src/manager/manager.c +++ b/src/manager/manager.c @@ -123,9 +123,12 @@ static bool login(private_manager_t *this, char *username, char *password) */ static void logout(private_manager_t *this) { + if (this->gateway) + { + this->gateway->destroy(this->gateway); + this->gateway = NULL; + } this->user = 0; - this->gateway->destroy(this->gateway); - this->gateway = NULL; } /** |