Skip to content
Snippets Groups Projects
Commit 2fecb456 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix -listen

parent c09e7002
Branches
Tags
No related merge requests found
...@@ -874,11 +874,11 @@ void GetOptions(int argc, char *argv[]) ...@@ -874,11 +874,11 @@ void GetOptions(int argc, char *argv[])
Msg::Fatal("Missing format"); Msg::Fatal("Missing format");
} }
else if(!strcmp(argv[i] + 1, "listen")) { else if(!strcmp(argv[i] + 1, "listen")) {
#ifndef HAVE_ONELAB2 i++;
#if !defined(HAVE_ONELAB2)
CTX::instance()->solver.listen = 1; CTX::instance()->solver.listen = 1;
#else #else
CTX::instance()->batch = 1; CTX::instance()->batch = 1;
i++;
if(argv[i]) { if(argv[i]) {
CTX::instance()->onelab.listen_port = atoi(argv[i++]); CTX::instance()->onelab.listen_port = atoi(argv[i++]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment