Expose PeerImp::start instead of requiring the use of accept/connect

This commit is contained in:
Nik Bougalis
2014-03-11 18:28:32 -07:00
parent 7aa1222310
commit 2e8df429df
2 changed files with 63 additions and 62 deletions

View File

@@ -220,7 +220,7 @@ public:
// This has to happen while holding the lock,
// otherwise the socket might not be canceled during a stop.
peer->accept ();
peer->start ();
}
}
@@ -258,7 +258,7 @@ public:
// This has to happen while holding the lock,
// otherwise the socket might not be canceled during a stop.
peer->connect ();
peer->start ();
}
}