aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c
index 7733bc924..8128d7356 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -457,7 +457,13 @@ static void
err_socket (GError *err, void *arg)
{
struct controller_session *session = (struct controller_session *)arg;
- msg_info ("err_socket: abnormally closing control connection, error: %s", err->message);
+
+ if (err->code == EOF) {
+ msg_info ("err_socket: client closed control connection");
+ }
+ else {
+ msg_info ("err_socket: abnormally closing control connection, error: %s", err->message);
+ }
/* Free buffers */
free_session (session);
}