}
+
+TorrentSession::~TorrentSession()
+{
+ alertWaiter_->stop();
+ alertWaiter_->wait();
+ emit sessionTerminated();
+}
+
+
void TorrentSession::loadState()
{
TorrentDownloadInfo info;
void TorrentSession::terminateSession()
{
qDebug() << "Terminate called";
+ // Emiting terminate() here causes the server application to quit in main()
emit terminate();
}