aboutsummaryrefslogtreecommitdiff
path: root/lib/jsonrpc.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-06-11 14:39:13 -0700
committerBen Pfaff <blp@nicira.com>2010-06-22 11:49:56 -0700
commit41630cfbc3230ee48d6b4031ec6cffba2cbb3d10 (patch)
treeb91e4c6f8c0049aa0a7e55678191c4977523b71a /lib/jsonrpc.c
parent97f7803b8eb6f9967ed6090eec1cd2533bad2afe (diff)
jsonrpc: Propagate error code to reconnect_disconnected().
Always passing 0 to reconnect_disconnected() means that it uses a generic log message ("connection dropped"). By passing the error code, as done by this commit, reconnect_disconnected() can log a more specific message.
Diffstat (limited to 'lib/jsonrpc.c')
-rw-r--r--lib/jsonrpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jsonrpc.c b/lib/jsonrpc.c
index bb4f6baf..13ec4257 100644
--- a/lib/jsonrpc.c
+++ b/lib/jsonrpc.c
@@ -802,7 +802,7 @@ jsonrpc_session_run(struct jsonrpc_session *s)
jsonrpc_run(s->rpc);
error = jsonrpc_get_status(s->rpc);
if (error) {
- reconnect_disconnected(s->reconnect, time_msec(), 0);
+ reconnect_disconnected(s->reconnect, time_msec(), error);
jsonrpc_session_disconnect(s);
}
} else if (s->stream) {