| | |
| | | shutdown = true; |
| | | |
| | | // shutdown the connect thread |
| | | try |
| | | if (myConnectThread != null) |
| | | { |
| | | myConnectThread.interrupt(); |
| | | } catch (NullPointerException e) |
| | | { |
| | | // FIXME To be investigated the conditions |
| | | // where myConnectThread can be null here |
| | | } |
| | | |
| | | // shutdown the listener thread |
| | | try |
| | | { |
| | | if (listenSocket != null) |
| | | { |
| | | listenSocket.close(); |
| | | } |
| | | } catch (IOException e) |
| | | { |
| | | // replication Server service is closing anyway. |
| | |
| | | replicationCache.shutdown(); |
| | | } |
| | | |
| | | if (dbEnv != null) |
| | | { |
| | | dbEnv.shutdown(); |
| | | } |
| | | DirectoryServer.deregisterMonitorProvider(getMonitorInstanceName()); |
| | | } |
| | | |