mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
*** empty log message ***
This commit is contained in:
parent
b4053a4256
commit
e6619abec0
@ -498,7 +498,9 @@ download(const string &file_name, Filename file_dest,
|
|||||||
#ifdef HAVE_IPC
|
#ifdef HAVE_IPC
|
||||||
_bandwidth_frequency_lock.lock();
|
_bandwidth_frequency_lock.lock();
|
||||||
#endif
|
#endif
|
||||||
int read_size = (int)(_bandwidth * _frequency);
|
int read_size = (int)_bandwidth;
|
||||||
|
if (_frequency > 0)
|
||||||
|
read_size = (int)(_bandwidth * _frequency);
|
||||||
#ifdef HAVE_IPC
|
#ifdef HAVE_IPC
|
||||||
_bandwidth_frequency_lock.unlock();
|
_bandwidth_frequency_lock.unlock();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user