added an test to avodi calling a null ftController in simulation mode

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5639 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-10-04 21:26:32 +00:00
parent 79f067732c
commit 59712222da

View file

@ -480,6 +480,7 @@ void p3turtle::autoWash()
// File hashes can only be removed by calling the 'stopMonitoringFileTunnels()' command. // File hashes can only be removed by calling the 'stopMonitoringFileTunnels()' command.
// All calls to _ft_controller are done off-mutex, to avoir cross-lock // All calls to _ft_controller are done off-mutex, to avoir cross-lock
if(_ft_controller != NULL)
for(uint32_t i=0;i<peers_to_remove.size();++i) for(uint32_t i=0;i<peers_to_remove.size();++i)
_ft_controller->removeFileSource(peers_to_remove[i].first,peers_to_remove[i].second) ; _ft_controller->removeFileSource(peers_to_remove[i].first,peers_to_remove[i].second) ;
@ -2067,7 +2068,7 @@ void p3turtle::handleTunnelResult(RsTurtleTunnelOkItem *item)
// notify the file transfer controller for the new file source. This should be done off-mutex // notify the file transfer controller for the new file source. This should be done off-mutex
// so we deported this code here. // so we deported this code here.
// //
if(new_tunnel) if(new_tunnel && _ft_controller != NULL)
{ {
_ft_controller->addFileSource(new_hash,new_vpid) ; _ft_controller->addFileSource(new_hash,new_vpid) ;
_ft_controller->statusChange(_online_peers) ; _ft_controller->statusChange(_online_peers) ;