File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -270,11 +270,19 @@ public override void Open()
270270
271271 InternalState = ConnectionState . Connecting ;
272272
273- var parameters = ConnectionParameters . Parse ( _connectionString ) ;
273+ try
274+ {
275+ var parameters = ConnectionParameters . Parse ( _connectionString ) ;
274276
275- _internal = _connectionPoolManager . Reserve ( _connectionString , parameters , _eventNotifier ) ;
277+ _internal = _connectionPoolManager . Reserve ( _connectionString , parameters , _eventNotifier ) ;
276278
277- InternalConnectionTimeout = parameters . LoginTimeout ;
279+ InternalConnectionTimeout = parameters . LoginTimeout ;
280+ }
281+ catch ( Exception )
282+ {
283+ InternalState = ConnectionState . Closed ;
284+ throw ;
285+ }
278286
279287 InternalState = ConnectionState . Open ;
280288 }
You can’t perform that action at this time.
0 commit comments