Commit 945457a9 authored by justcoding121's avatar justcoding121

handle exceptions

parent 421e2598
...@@ -472,12 +472,15 @@ namespace Titanium.Web.Proxy.Network.Tcp ...@@ -472,12 +472,15 @@ namespace Titanium.Web.Proxy.Network.Tcp
} }
} }
} }
catch (Exception e) {
server.ExceptionFunc(new Exception("An error occurred when disposing server connections.", e));
}
finally finally
{ {
//cleanup every 3 seconds by default //cleanup every 3 seconds by default
await Task.Delay(1000 * 3); await Task.Delay(1000 * 3);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment