update runtime

This commit is contained in:
chuanweizhang2013 2014-03-28 16:07:29 +08:00
parent c016f80f58
commit 0d65057116
1 changed files with 5 additions and 5 deletions

View File

@ -376,10 +376,6 @@ bool CreateDir(const char *sPathName)
void updateResFileInfo(string filename,string filetime)
{
if(!g_filecfgjson.IsObject())
{
g_filecfgjson.SetObject();
}
if (g_filecfgjson.HasMember(filename.c_str())) {
g_filecfgjson.RemoveMember(filename.c_str());
}
@ -414,8 +410,12 @@ void readResFile()
{
rapidjson::FileStream inputStream(pFile);
g_filecfgjson.ParseStream<0>(inputStream);
fclose(pFile);
}
if(!g_filecfgjson.IsObject())
{
g_filecfgjson.SetObject();
}
fclose(pFile);
}
bool FileServer::recv_file(int fd)