Redesign the way the acquire timer is (re)set so that we won't have bugs

where we fail to arm it.
This commit is contained in:
JoelKatz
2013-01-03 21:25:40 -08:00
parent b7fe1424fb
commit d4f4d9bf78
3 changed files with 22 additions and 28 deletions

View File

@@ -47,10 +47,11 @@ public:
void peerHas(Peer::ref);
void badPeer(Peer::ref);
void resetTimer();
void setTimer();
int takePeerSetFrom(const PeerSet& s);
int getPeerCount() const;
virtual bool isDone() const { return mComplete || mFailed; }
protected:
virtual void newPeer(Peer::ref) = 0;