From b263e8d9cbdc03b39333073a240d601015d70e83 Mon Sep 17 00:00:00 2001 From: Leon de Rooij Date: Tue, 28 Apr 2009 11:20:15 +0200 Subject: [PATCH] freeswitch plugin: Only disconnect when connected --- src/freeswitch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0