~ubuntu-branches/ubuntu/oneiric/libktorrent/oneiric

« back to all changes in this revision

Viewing changes to src/tracker/httptracker.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2011-05-26 00:33:38 UTC
  • mfrom: (5.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110526003338-2r4zwyzn8bovsxay
Tags: 1.1.1-2
Release to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
311
311
                        failed(error);
312
312
                        return false;
313
313
                }
 
314
                
 
315
                if (dict->getData("warning message"))
 
316
                {
 
317
                        BValueNode* vn = dict->getValue("warning message");
 
318
                        warning = vn->data().toString();
 
319
                }
 
320
                else
 
321
                        warning.clear();
314
322
                        
315
323
                BValueNode* vn = dict->getValue("interval");
316
324
                        
441
449
                                                peersReady(this);
442
450
                                                request_time = QDateTime::currentDateTime();
443
451
                                                status = TRACKER_OK;
444
 
                                                requestOK();
445
452
                                                if (url.queryItem("event") == "started")
446
453
                                                        started = true;
447
454
                                                if (started)
448
455
                                                        reannounce_timer.start(interval * 1000);
 
456
                                                requestOK();
449
457
                                        }
450
458
                                }
451
459
                                catch (bt::Error & err)