Fixed host not always being set correctly, probably.
This commit is contained in:
parent
9e85f255ef
commit
911cb65740
1 changed files with 1 additions and 3 deletions
|
@ -1124,7 +1124,6 @@ namespace Mist {
|
|||
}
|
||||
|
||||
void Output::stats(){
|
||||
static bool setHost = true;
|
||||
if (!isInitialized){
|
||||
return;
|
||||
}
|
||||
|
@ -1140,9 +1139,8 @@ namespace Mist {
|
|||
lastStats = now;
|
||||
IPC::statExchange tmpEx(statsPage.getData());
|
||||
tmpEx.now(now);
|
||||
if (setHost){
|
||||
if (tmpEx.host() == std::string("\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000", 16)){
|
||||
tmpEx.host(getConnectedBinHost());
|
||||
setHost = false;
|
||||
}
|
||||
tmpEx.crc(crc);
|
||||
tmpEx.streamName(streamName);
|
||||
|
|
Loading…
Add table
Reference in a new issue