bufferLivePacket improvements for generic Outputs

This commit is contained in:
Thulinma 2017-03-16 14:02:06 +01:00
parent 2717c21d4e
commit 746d982d28
12 changed files with 61 additions and 86 deletions

View file

@ -28,7 +28,6 @@ namespace Mist {
Bit::htobl(sSize, prep.packedSize());
myConn.SendNow(sSize, 4);
prep.sendTo(myConn);
pushing = false;
lastActive = Util::epoch();
}
@ -174,9 +173,7 @@ namespace Mist {
streamName = dScan.getMember("stream").asString();
std::string passString = dScan.getMember("password").asString();
Util::sanitizeName(streamName);
pushing = true;
if (!allowPush(passString)){
pushing = false;
myConn.close();
return;
}