- Namespaced QBittorrentSession and QTorrentHandle to avoid possible future conflicts
[qtrapids] / src / engine / AlertWaiterThread.cpp
index b5d6e95..4f18636 100644 (file)
@@ -55,10 +55,12 @@ void AlertWaiterThread::allAlerts(bool enable)
 
 void AlertWaiterThread::run()
 {
-       TorrentAlert const *alertTemp = NULL;
+       Alert const *alertTemp = NULL;
        while (true)
        {
+#ifdef QTRAPIDS_DEBUG
                qDebug() << "AlertWaiter running";
+#endif
                // wait_for_alert() call blocks. Returns libtorrent alert. 
                // Returns NULL, if no alerts in timeout period.
                alertTemp = btSession_->wait_for_alert(ALERT_WAIT_TIMEOUT);