Skip to content

Commit

Permalink
Fix smtp loop
Browse files Browse the repository at this point in the history
  • Loading branch information
arkanovicz committed Aug 30, 2022
1 parent b25be66 commit effdbe1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ under the License.
</parent>
<groupId>com.republicate</groupId>
<artifactId>webapp-slf4j-logger</artifactId>
<version>2.0</version>
<version>2.1</version>
<packaging>jar</packaging>
<name>webapp-slf4j-logger</name>
<description>SLF4J backend to log to a WebApp's ServletContext</description>
Expand Down Expand Up @@ -86,6 +86,12 @@ under the License.
<artifactId>simple-mailer</artifactId>
<version>1.0</version>
</dependency>
<!-- upgrade jsoup, which has a vulnerability in 1.12.2 version, used by commons-lang3 -->
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.15.3</version>
</dependency>
</dependencies>
<distributionManagement>
<snapshotRepository>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/republicate/slf4j/util/MailNotifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void start()
config.put("smtp.user", env.get("SMTP_USER"));
config.put("smtp.password", env.get("SMTP_PASSWORD"));
smtpLoop = new SmtpLoop(config);
smtpLoop.run();
new Thread(smtpLoop, "smtp-loop").start();
}

public boolean isRunning()
Expand Down

0 comments on commit effdbe1

Please sign in to comment.