mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-04 17:15:31 -05:00
suppresed bad lookup in _queue causing SIGV
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2582 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b41de7d727
commit
20fd24d7b8
@ -454,7 +454,8 @@ void ftController::setQueueSize(uint32_t s)
|
||||
std::cerr << "Settign new queue size to " << s << std::endl ;
|
||||
#endif
|
||||
for(uint32_t p=std::min(s,old_s);p<=std::max(s,old_s);++p)
|
||||
locked_checkQueueElement(p);
|
||||
if(p < _queue.size())
|
||||
locked_checkQueueElement(p);
|
||||
}
|
||||
else
|
||||
std::cerr << "ftController::setQueueSize(): cannot set queue to size " << s << std::endl ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user