diff options
author | Ben Pfaff <blp@nicira.com> | 2010-06-11 14:39:13 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-06-22 11:49:56 -0700 |
commit | 41630cfbc3230ee48d6b4031ec6cffba2cbb3d10 (patch) | |
tree | b91e4c6f8c0049aa0a7e55678191c4977523b71a /lib/jsonrpc.c | |
parent | 97f7803b8eb6f9967ed6090eec1cd2533bad2afe (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.c | 2 |
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) { |