X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FNpgsql%2FNpgsql%2FNpgsqlConnectorPool.cs;h=0783e4a9a8c54ae4c01c9ef91e0e0a16e3fcaa47;hb=c39145af2464b19374fac41b252e07480ae1a197;hp=fb29d4320419a0fe6f01bf7e0d3816604077b7e4;hpb=6a6029bbfe95f8cbc0e7e8cfa602db0b40220e80;p=mono.git diff --git a/mcs/class/Npgsql/Npgsql/NpgsqlConnectorPool.cs b/mcs/class/Npgsql/Npgsql/NpgsqlConnectorPool.cs index fb29d432041..0783e4a9a8c 100755 --- a/mcs/class/Npgsql/Npgsql/NpgsqlConnectorPool.cs +++ b/mcs/class/Npgsql/Npgsql/NpgsqlConnectorPool.cs @@ -428,6 +428,9 @@ namespace Npgsql if (Connector.State == System.Data.ConnectionState.Open) { + // Release all plans and portals associated with this connector. + Connector.ReleasePlansPortals(); + Queue.Enqueue(Connector); } }