Changeset 1854


Ignore:
Timestamp:
Aug 21, 2010, 11:07:28 AM (11 years ago)
Author:
Sven Rech
Message:

quadratic sieve fixes

Location:
trunk/CrypPlugins/QuadraticSieve
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/QuadraticSieve/PeerToPeer.cs

    r1819 r1854  
    9292        public int getActivePeers()
    9393        {
     94            if (activePeers == null)
     95                return 0;
    9496            return activePeers.Count;
    9597        }
  • trunk/CrypPlugins/QuadraticSieve/QuadraticSieve.cs

    r1819 r1854  
    177177                }
    178178
    179                 if (usePeer2Peer && settings.Channel.Trim() == "")
     179                if (usePeer2Peer && (settings.Channel == null ||settings.Channel.Trim() == ""))
    180180                {
    181181                    GuiLogMessage("No channel for Peer2Peer network specified. Sieving locally now!", NotificationLevel.Warning);
     
    832832        {
    833833            EventsHelper.ProgressChanged(OnPluginProgressChanged, this, new PluginProgressEventArgs(value, max));
    834             peerToPeerStatusUpdater.UpdateStatus(value/max);
     834            if (usePeer2Peer)
     835                peerToPeerStatusUpdater.UpdateStatus(value/max);
    835836        }
    836837
Note: See TracChangeset for help on using the changeset viewer.