Fixed problem, removed debug code again
This commit is contained in:
@@ -43,15 +43,11 @@ namespace Swarmops.Utility.Communications
|
||||
|
||||
string smtpServer = _smtpServerCache;
|
||||
|
||||
Console.WriteLine("Debug: SmtpServer is '{0}'", smtpServer);
|
||||
|
||||
DateTime now = DateTime.Now;
|
||||
|
||||
if (now > _cacheReloadTime)
|
||||
{
|
||||
smtpServer = _smtpServerCache = Persistence.Key ["SmtpServer"];
|
||||
Console.WriteLine("Debug: SmtpServer reloaded from persistence, is now '{0}'", smtpServer);
|
||||
|
||||
_cacheReloadTime = now.AddMinutes(5);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user