mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 00:55:13 -04:00
fixed bug in distant msg sending code causing crashes
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7255 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
74bc8ad999
commit
8420d27a02
3 changed files with 35 additions and 26 deletions
|
@ -157,7 +157,8 @@ class p3GRouter: public RsGRouter, public p3Service, public p3Config
|
|||
//
|
||||
static uint32_t computeBranchingFactor(const std::vector<RsPeerId>& friends,const std::vector<float>& probas,uint32_t dist) ;
|
||||
static std::set<uint32_t> computeRoutingFriends(const std::vector<RsPeerId>& friends,const std::vector<float>& probas,uint32_t N) ;
|
||||
static uint32_t computeRandomDistanceIncrement(const RsPeerId& pid,const GRouterKeyId& destination_id) ;
|
||||
|
||||
uint32_t computeRandomDistanceIncrement(const RsPeerId& pid,const GRouterKeyId& destination_id) ;
|
||||
|
||||
//===================================================//
|
||||
// p3Config methods //
|
||||
|
@ -235,6 +236,13 @@ class p3GRouter: public RsGRouter, public p3Service, public p3Config
|
|||
|
||||
// config update/save variables
|
||||
bool _changed ;
|
||||
|
||||
time_t _last_autowash_time ;
|
||||
time_t _last_publish_campaign_time ;
|
||||
time_t _last_debug_output_time ;
|
||||
time_t _last_config_changed ;
|
||||
|
||||
uint64_t _random_salt ;
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue