summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ovsdb/ovsdb-server.c1
-rw-r--r--ovsdb/replication.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ovsdb/ovsdb-server.c b/ovsdb/ovsdb-server.c
index 239cca8ec..1c6ddca40 100644
--- a/ovsdb/ovsdb-server.c
+++ b/ovsdb/ovsdb-server.c
@@ -202,6 +202,7 @@ main_loop(struct ovsdb_jsonrpc_server *jsonrpc, struct shash *all_dbs,
}
}
+ disconnect_remote_server();
free(remotes_error);
}
diff --git a/ovsdb/replication.c b/ovsdb/replication.c
index 52b708523..e12591703 100644
--- a/ovsdb/replication.c
+++ b/ovsdb/replication.c
@@ -391,6 +391,7 @@ check_for_notifications(struct shash *all_dbs)
if (error == EAGAIN) {
return;
} else if (error) {
+ jsonrpc_close(rpc);
rpc = open_jsonrpc(remote_ovsdb_server);
if (!rpc) {
/* Remote server went down. */