Commit df525fc7 authored by locatelli's avatar locatelli
Browse files

changes

parent b96147a9
......@@ -133,14 +133,14 @@ void RemoteNanokin::stop() {
m_StopApplication = m_server->connect(NANOKIN_CMD);
cout << "connected application" << endl;
if (m_StopApplication->exists()) {
// The application exists from a previous server session
m_StopApplication->kill();
application::State state = m_StopApplication->waitFor();
cout << "Terminated stop application " << state << endl;
}
// cout << "connected application" << endl;
//
// if (m_StopApplication->exists()) {
// // The application exists from a previous server session
// m_StopApplication->kill();
// application::State state = m_StopApplication->waitFor();
// cout << "Terminated stop application " << state << endl;
// }
vector<string> args;
args.push_back("STOP");
......@@ -151,7 +151,7 @@ void RemoteNanokin::stop() {
// return false;
// }
m_StopApplication->waitFor(application::STOPPED);
m_StartApplication->waitFor(application::STOPPED);
} catch (const std::exception & e) {
// Currently an exception can occur during isAvailable.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment