Name shutdown thread
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@607 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
d4ffe34bee
commit
e6aaafa508
|
@ -50,7 +50,7 @@ public class DavGateway {
|
||||||
|
|
||||||
// server mode: all threads are daemon threads, do not let main stop
|
// server mode: all threads are daemon threads, do not let main stop
|
||||||
if (Settings.getBooleanProperty("davmail.server")) {
|
if (Settings.getBooleanProperty("davmail.server")) {
|
||||||
Runtime.getRuntime().addShutdownHook(new Thread() {
|
Runtime.getRuntime().addShutdownHook(new Thread("Shutdown") {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
DavGatewayTray.debug(new BundleMessage("LOG_GATEWAY_INTERRUPTED"));
|
DavGatewayTray.debug(new BundleMessage("LOG_GATEWAY_INTERRUPTED"));
|
||||||
|
|
Loading…
Reference in New Issue