Skip to content
Snippets Groups Projects
Commit 7b690192 authored by Maxime Graulich's avatar Maxime Graulich
Browse files

mobile: fix onelab_cb

parent e0e727ad
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
#include "Trackball.h" #include "Trackball.h"
static bool locked = false; static bool locked = false;
static bool onelabStop = false;
drawContext::drawContext() drawContext::drawContext()
{ {
...@@ -610,6 +611,7 @@ int onelab_cb(std::string action) ...@@ -610,6 +611,7 @@ int onelab_cb(std::string action)
o.setVisible(false); o.setVisible(false);
o.setNeverChanged(true); o.setNeverChanged(true);
onelab::server::instance()->set(o); onelab::server::instance()->set(o);
onelabStop = true;
return 0; return 0;
} }
if(locked) return -1; if(locked) return -1;
...@@ -675,7 +677,7 @@ int onelab_cb(std::string action) ...@@ -675,7 +677,7 @@ int onelab_cb(std::string action)
args.push_back("GetDP"); args.push_back("GetDP");
GetDP(args, onelab::server::instance()); GetDP(args, onelab::server::instance());
} }
} while(action == "compute" && (onelabUtils::incrementLoop("3") || onelabUtils::incrementLoop("2") || onelabUtils::incrementLoop("1"))); } while(action == "compute" && !onelabStop && (onelabUtils::incrementLoop("3") || onelabUtils::incrementLoop("2") || onelabUtils::incrementLoop("1")));
locked = false; locked = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment