From 08a1406917b0bdb511d5d902933e4201eaebde8c Mon Sep 17 00:00:00 2001 From: Ben Merrills Date: Thu, 4 May 2017 11:16:18 +0100 Subject: [PATCH] Revert "Clean up on socket initialization error" --- .../Asterisk.NET/FastAGI/AsteriskFastAGI.cs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Asterisk.2013/Asterisk.NET/FastAGI/AsteriskFastAGI.cs b/Asterisk.2013/Asterisk.NET/FastAGI/AsteriskFastAGI.cs index 25c128d..8e7decf 100644 --- a/Asterisk.2013/Asterisk.NET/FastAGI/AsteriskFastAGI.cs +++ b/Asterisk.2013/Asterisk.NET/FastAGI/AsteriskFastAGI.cs @@ -240,20 +240,6 @@ namespace AsterNET.FastAGI #endif throw ex; } - finally - { - if (serverSocket != null) - { - serverSocket.Close(); - serverSocket = null; - } - - pool.Shutdown(); -#if LOGGER - logger.Info("AGIServer shut down."); -#endif - } - #if LOGGER logger.Info("Listening on " + address + ":" + port + "."); #endif