Fixed problem, removed debug code again

This commit is contained in:
Rick Falkvinge
2013-11-20 15:39:11 +00:00
parent cd256c6d45
commit 30bcd9b063
@@ -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);
}