Improved flow of controller main function, made config file only re-write if updates were actually necessary, failure to open a stream input now fails the output correctly.

This commit is contained in:
Thulinma 2015-10-14 10:25:58 +02:00
parent 1cae0a7fd3
commit 3ba11441a1
3 changed files with 30 additions and 11 deletions

View file

@ -85,6 +85,9 @@ namespace Mist {
/// thus causing the process to exit cleanly.
void Output::onFail(){
isInitialized = false;
wantRequest = true;
parseData= false;
streamName.clear();
myConn.close();
}