mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 17:16:20 +00:00
Merge with develop
--HG-- branch : compatibility-develop
This commit is contained in:
commit
9e33df4532
2 changed files with 4 additions and 3 deletions
|
@ -363,7 +363,7 @@ CSound* CSoundBank::getSound(const NLMISC::CSheetId &sheetId)
|
||||||
if (sheetId.getShortId() >= _Sounds.size())
|
if (sheetId.getShortId() >= _Sounds.size())
|
||||||
{
|
{
|
||||||
std::string sheetName = sheetId.toString();
|
std::string sheetName = sheetId.toString();
|
||||||
nlwarning("NLSOUND: Sound sheet id '%s' exceeds loaded sound sheets", sheetName.c_str());
|
nldebug("NLSOUND: Sound sheet id '%s' exceeds loaded sound sheets", sheetName.c_str());
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -193,20 +193,21 @@ bool CHttpClient::receive(string &res, bool verbose)
|
||||||
|
|
||||||
if (_Sock.receive((uint8*)buf, size, false) == CSock::Ok)
|
if (_Sock.receive((uint8*)buf, size, false) == CSock::Ok)
|
||||||
{
|
{
|
||||||
if(verbose) nlinfo("Received OK %d bytes", size);
|
if (verbose) nlinfo("Received OK %d bytes", size);
|
||||||
buf[1023] = '\0';
|
buf[1023] = '\0';
|
||||||
res += (char*)buf;
|
res += (char*)buf;
|
||||||
//nlinfo("block received '%s'", buf);
|
//nlinfo("block received '%s'", buf);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(verbose) nlinfo("Received CLOSE %d bytes", size);
|
if (verbose) nlinfo("Received CLOSE %d bytes", size);
|
||||||
buf[size] = '\0';
|
buf[size] = '\0';
|
||||||
res += (char*)buf;
|
res += (char*)buf;
|
||||||
//nlwarning ("server connection closed");
|
//nlwarning ("server connection closed");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//nlinfo("all received '%s'", res.c_str());
|
//nlinfo("all received '%s'", res.c_str());
|
||||||
|
|
||||||
// only keep content (delimited by two \r\n) and discard server headers
|
// only keep content (delimited by two \r\n) and discard server headers
|
||||||
|
|
Loading…
Reference in a new issue