Project

General

Profile

« Previous | Next » 

Revision aa550481

Added by Leszek Koltunski almost 3 years ago

Bugfix for downoading records.

View differences:

src/main/java/org/distorted/external/RubikNetwork.java
548 548

  
549 549
  private void downloadThread(ScoresReceiver receiver)
550 550
    {
551
    boolean receiveValues=true;
552

  
551 553
    try
552 554
      {
553 555
      if( gottaDownload() )
554 556
        {
555 557
        mRunning = true;
556
        boolean receiveValues = network(constructDownloadURL(),receiver);
558
        receiveValues = network(constructDownloadURL(),receiver);
557 559

  
558 560
        if( mRunning )
559 561
          {
560 562
          receiveValues = fillValuesNormal(receiver);
561 563
          mRunning = false;
562 564
          }
563

  
564
        if( receiveValues ) receiver.receive(mCountry, mName, mTime);
565 565
        }
566
      if( receiveValues ) receiver.receive(mCountry, mName, mTime);
566 567
      }
567 568
    catch( Exception e )
568 569
      {

Also available in: Unified diff