Revision 8f44fd3a trunk/Pithos.Core/PithosMonitor.cs

b/trunk/Pithos.Core/PithosMonitor.cs
193 193
            }
194 194
            _cancellationSource = new CancellationTokenSource();
195 195

  
196

  
197
            CloudClient = new CloudFilesClient(UserName, ApiKey)
198
                              {UsePithos = true, AuthenticationUrl = AuthenticationUrl};
199

  
200

  
201
            _accountInfo = CloudClient.Authenticate();            
196
            lock (this)
197
            {
198
                CloudClient = new CloudFilesClient(UserName, ApiKey)
199
                                  {UsePithos = true, AuthenticationUrl = AuthenticationUrl};
200
                _accountInfo = CloudClient.Authenticate();
201
            }
202 202
            _accountInfo.SiteUri = AuthenticationUrl;
203 203
            _accountInfo.AccountPath = RootPath;
204 204

  
......
432 432
            var selectivePaths = UrisToFilePaths(uris);
433 433
            
434 434
            FileAgent.SelectivePaths=selectivePaths;
435
            WorkflowAgent.SelectivePaths = selectivePaths;
435 436
            PollAgent.SetSyncUris(_accountInfo.AccountKey,uris);
436 437
            
437 438
            var removedPaths = UrisToFilePaths(removed);

Also available in: Unified diff