From 03c06cc52e06ff3a31cc8bef61450c709b17eb8e Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Thu, 05 Jul 2007 12:19:08 +0000
Subject: [PATCH] Fix for issue 1874, 1875
---
opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java b/opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java
index d87ef2e..c3a35a1 100644
--- a/opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java
+++ b/opends/src/server/org/opends/server/replication/plugin/ReplicationBroker.java
@@ -176,10 +176,8 @@
* Start the ReplicationBroker.
*
* @param servers list of servers used
- * @throws Exception : in case of errors
*/
public void start(Collection<String> servers)
- throws Exception
{
/*
* Open Socket to the ReplicationServer
@@ -207,7 +205,7 @@
* @throws NumberFormatException address was invalid
* @throws IOException error during connection phase
*/
- private void connect() throws NumberFormatException, IOException
+ private void connect()
{
ReplServerStartMessage startMsg;
@@ -399,7 +397,13 @@
{
if (session != null)
{
- session.close();
+ try
+ {
+ session.close();
+ } catch (IOException e)
+ {
+ // The session was already closed, just ignore.
+ }
session = null;
}
}
--
Gitblit v1.10.0