fix: Replace process on reload

This commit is contained in:
Michael Carlberg 2016-12-03 15:46:48 +01:00
parent 0f91d3d8df
commit 086e498388
5 changed files with 125 additions and 122 deletions
src/components

View file

@ -118,6 +118,7 @@ controller::~controller() {
}
m_connection.flush();
m_connection.disconnect();
}
/**
@ -178,7 +179,7 @@ void controller::bootstrap(bool writeback, bool dump_wmname) {
/**
* Launch the controller
*/
void controller::run() {
bool controller::run() {
assert(!m_connection.connection_has_error());
m_log.info("Starting application");
@ -235,12 +236,7 @@ void controller::run() {
m_log.trace("controller: Removing config watch");
m_confwatch->remove(true);
}
}
/**
* Get completion state
*/
bool controller::completed() {
return !m_running && !m_reload;
}