X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ffreeswitch.c;h=dbf9d215158389e7c9cc6c6111784220bd9384b0;hb=b263e8d9cbdc03b39333073a240d601015d70e83;hp=b59f7aa17a919e240aa06104dc4c7f7d0ae5438d;hpb=db35f58a10a95fbe94d28896818b57ad61892dfe;p=collectd.git diff --git a/src/freeswitch.c b/src/freeswitch.c index b59f7aa1..dbf9d215 100644 --- a/src/freeswitch.c +++ b/src/freeswitch.c @@ -524,7 +524,7 @@ static int fs_init (void) static int fs_shutdown (void) { DEBUG ("freeswitch plugin: disconnecting"); - esl_disconnect(&esl_handle); + if (esl_handle.connected) esl_disconnect(&esl_handle); fs_command_free (fs_commands_g); fs_commands_g = NULL; return (0);