Revision: ac78646c3141
Branch: default
Author: gm2552
Date: Tue Sep 23 12:23:00 2014 UTC
Log: Adding fixes for concurrency issues.
https://code.google.com/p/nhin-d/source/detail?r=ac78646c3141
Modified:
/java/xd/src/main/java/org/nhind/xdr/DocumentRepositoryAbstract.java
=======================================
--- /java/xd/src/main/java/org/nhind/xdr/DocumentRepositoryAbstract.java
Wed Sep 10 00:55:38 2014 UTC
+++ /java/xd/src/main/java/org/nhind/xdr/DocumentRepositoryAbstract.java
Tue Sep 23 12:23:00 2014 UTC
@@ -388,19 +388,14 @@
private MailClient getMailClient()
{
- if (mailClient == null)
- {
- if(config==null){
- config = getConfig();
- }
- String hostname = config.getMailHost();
- String username = config.getMailUser();
- String password = config.getMailPass();
-
- mailClient = new SmtpMailClient(hostname, username, password);
+ if(config==null){
+ config = getConfig();
}
+ String hostname = config.getMailHost();
+ String username = config.getMailUser();
+ String password = config.getMailPass();
- return mailClient;
+ return new SmtpMailClient(hostname, username, password);
}
/**
@@ -480,3 +475,4 @@
}
+