Ignore:
Timestamp:
May 31, 2010, 7:22:34 PM (12 years ago)
Author:
Paul Lelgemann
Message:

o CrypP2P: refactored P2PBase, removed race condition and unused code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/P2PEditor/Distributed/DistributedJob.cs

    r1530 r1545  
    6868            info.AddValue("JobDescription", JobDescription);
    6969            info.AddValue("JobGuid", JobGuid);
    70             info.AddValue("JobOwner", P2PManager.Instance.P2PSettings.PeerName);
     70            info.AddValue("JobOwner", P2PSettings.Default.PeerName);
    7171            info.AddValue("JobDate", DateTime.Now);
    7272            info.AddValue("FileName", Path.GetFileName(LocalFilePath));
     
    7777        public void ConvertRawWorkspaceToLocalFile(byte[] rawWorkspaceData)
    7878        {
    79             string workspacePath = P2PManager.Instance.P2PSettings.WorkspacePath;
     79            string workspacePath = P2PSettings.Default.WorkspacePath;
    8080            if (String.IsNullOrEmpty(workspacePath) || !Directory.Exists(workspacePath))
    8181            {
    82                 throw new ArgumentOutOfRangeException(workspacePath, "Workspace path is null, empty or does not exist.");
     82                throw new ArgumentOutOfRangeException(workspacePath, "Configured workspace directory is null, empty or does not exist.");
    8383            }
    8484
     
    9393            if (rawWorkspaceData == null || rawWorkspaceData.Length == 0)
    9494            {
    95                 throw new ArgumentOutOfRangeException(LocalFilePath, "Workspace could not be fetching using Peer-to-peer.");
     95                throw new NotSupportedException("Workspace data could not be fetching using Peer-to-peer.");
    9696            }
    9797
Note: See TracChangeset for help on using the changeset viewer.