aboutsummaryrefslogtreecommitdiffstats
path: root/src/coopgammad.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-05 16:25:21 +0200
committerMattias Andrée <maandree@kth.se>2016-08-05 16:25:21 +0200
commit2dddacd0a33451ea62df708f5d8a31b99d4c5350 (patch)
tree4912980b7e948b0ef011517e06763581ab2cd707 /src/coopgammad.c
parentwhitespace (diff)
downloadcoopgammad-2dddacd0a33451ea62df708f5d8a31b99d4c5350.tar.gz
coopgammad-2dddacd0a33451ea62df708f5d8a31b99d4c5350.tar.bz2
coopgammad-2dddacd0a33451ea62df708f5d8a31b99d4c5350.tar.xz
Fix disconnect/reconnect bugs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/coopgammad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coopgammad.c b/src/coopgammad.c
index 1276189..ddb98ad 100644
--- a/src/coopgammad.c
+++ b/src/coopgammad.c
@@ -423,7 +423,7 @@ static void destroy(int full)
disconnect_all();
close_socket(socketpath);
free(argv0_real);
- if (outputs != NULL)
+ if ((outputs != NULL) && connected)
restore_gamma();
}
state_destroy();