Changeset 6456 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/SlaveJob.cs
- Timestamp:
- 06/20/11 16:57:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/SlaveJob.cs
r6371 r6456 23 23 using System.IO; 24 24 using System.Threading; 25 using HeuristicLab.Clients.Hive.SlaveCore.Properties; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 126 127 if (appDomain != null) { 127 128 appDomain.UnhandledException -= new UnhandledExceptionEventHandler(AppDomain_UnhandledException); 128 int repeat = 5;129 int repeat = Settings.Default.PluginDeletionRetries; 129 130 while (repeat > 0) { 130 131 try { … … 136 137 catch (CannotUnloadAppDomainException) { 137 138 log.LogMessage("Could not unload AppDomain, will try again in 1 sec."); 138 Thread.Sleep( 1000);139 Thread.Sleep(Settings.Default.PluginDeletionTimeout); 139 140 repeat--; 140 141 if (repeat == 0) {
Note: See TracChangeset
for help on using the changeset viewer.