summaryrefslogtreecommitdiffstats
path: root/src/socket-proxy/socket-proxyd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket-proxy/socket-proxyd.c')
-rw-r--r--src/socket-proxy/socket-proxyd.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c
index dd9fa07153..7648a6ce7d 100644
--- a/src/socket-proxy/socket-proxyd.c
+++ b/src/socket-proxy/socket-proxyd.c
@@ -472,11 +472,9 @@ static int add_connection_socket(Context *context, int fd) {
return 0;
}
- if (context->idle_time) {
- r = sd_event_source_set_enabled(context->idle_time, SD_EVENT_OFF);
- if (r < 0)
- log_warning_errno(r, "Unable to disable idle timer, continuing: %m");
- }
+ r = sd_event_source_set_enabled(context->idle_time, SD_EVENT_OFF);
+ if (r < 0)
+ log_warning_errno(r, "Unable to disable idle timer, continuing: %m");
c = new(Connection, 1);
if (!c) {