Fixed HTTP outputs for Windows builds.
This commit is contained in:
parent
a2f16d9fac
commit
d1bbb26e96
1 changed files with 14 additions and 4 deletions
|
@ -257,11 +257,21 @@ namespace Mist {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (id == -1) {
|
if (id == -1) {
|
||||||
|
connector = connector + ".exe";
|
||||||
|
for (unsigned int i=0; i < prots_ctr; ++i){
|
||||||
|
if (prots.getIndice(i).getMember("connector").asString() == connector) {
|
||||||
|
id = i;
|
||||||
|
break; //pick the first protocol in the list that matches the connector
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (id == -1) {
|
||||||
|
connector = connector.substr(0, connector.size() - 4);
|
||||||
DEBUG_MSG(DLVL_ERROR, "No connector found for: %s", connector.c_str());
|
DEBUG_MSG(DLVL_ERROR, "No connector found for: %s", connector.c_str());
|
||||||
configLock.post();
|
configLock.post();
|
||||||
configLock.close();
|
configLock.close();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
DEBUG_MSG(DLVL_HIGH, "Connector found: %s", connector.c_str());
|
DEBUG_MSG(DLVL_HIGH, "Connector found: %s", connector.c_str());
|
||||||
//build arguments for starting output process
|
//build arguments for starting output process
|
||||||
|
|
Loading…
Add table
Reference in a new issue