Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadSpecialModules
Commits
df525fc7
Commit
df525fc7
authored
Nov 15, 2019
by
locatelli
Browse files
changes
parent
b96147a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/controllers/remotenanokin/RemoteNanokin.cpp
View file @
df525fc7
...
...
@@ -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_St
op
Application
->
waitFor
(
application
::
STOPPED
);
m_St
art
Application
->
waitFor
(
application
::
STOPPED
);
}
catch
(
const
std
::
exception
&
e
)
{
// Currently an exception can occur during isAvailable.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment