mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-27 07:05:43 +03:00
Netchan_CreateFileFragments: Fixed a hang connection on verifying resource stage, when precached file exists but is absolutely empty
This commit is contained in:
parent
b870de768b
commit
61ee4f9269
@ -1203,7 +1203,9 @@ int Netchan_CreateFileFragments(qboolean server, netchan_t *chan, const char *fi
|
||||
|
||||
if (!FS_FileExists(filename))
|
||||
return FALSE;
|
||||
if (FS_FileSize(filename) > sv_filetransfermaxsize.value)
|
||||
|
||||
unsigned int nSize = FS_FileSize(filename);
|
||||
if (nSize == 0 || nSize > sv_filetransfermaxsize.value)
|
||||
return FALSE;
|
||||
|
||||
auto wait = (fragbufwaiting_t *)Mem_ZeroMalloc(sizeof(fragbufwaiting_t));
|
||||
|
Loading…
Reference in New Issue
Block a user