summaryrefslogtreecommitdiff
path: root/cwebhook.c
diff options
context:
space:
mode:
Diffstat (limited to 'cwebhook.c')
-rw-r--r--cwebhook.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cwebhook.c b/cwebhook.c
index b03d752..5dd6126 100644
--- a/cwebhook.c
+++ b/cwebhook.c
@@ -35,10 +35,10 @@ log_file_t ldata;
void safe_exit( int sigc, siginfo_t *s_info, void *ectx ){
if ( ssocket.tls_context != NULL )
SSL_CTX_free( ssocket.tls_context );
- if ( ssocket.socket_fd > 0 )
- close( ssocket.socket_fd );
if ( ssocket.client_socket_fd > 0 )
close( ssocket.client_socket_fd );
+ if ( ssocket.socket_fd > 0 )
+ close( ssocket.socket_fd );
if ( sconfig.config_parsed != NULL )
cJSON_Delete( sconfig.config_parsed );
if ( whinfo.webhooks_parsed != NULL )