Fix double destruction of local ui
This commit is contained in:
parent
43fb216772
commit
776059a4c3
|
@ -327,11 +327,13 @@ std::unique_ptr<UserInterface> create_local_ui(bool dummy_ui)
|
||||||
if (not convert_to_client_pending and
|
if (not convert_to_client_pending and
|
||||||
not ClientManager::instance().empty())
|
not ClientManager::instance().empty())
|
||||||
{
|
{
|
||||||
this->NCursesUI::~NCursesUI();
|
|
||||||
if (fork_server_to_background())
|
if (fork_server_to_background())
|
||||||
|
{
|
||||||
|
this->NCursesUI::~NCursesUI();
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
using SigHandler = void (*)(int);
|
using SigHandler = void (*)(int);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user