mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 15:11:22 +00:00
GUACAMOLE-641: Ensure MyBatis "expectedConnectionTypeCode" is generated and matches valid database connections.
This commit is contained in:
@@ -80,6 +80,13 @@ public class DynamicallyAuthenticatedDataSource extends PooledDataSource {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Force recalculation of expectedConnectionTypeCode. The
|
||||||
|
// PooledDataSource constructor accepting a single UnpooledDataSource
|
||||||
|
// will otherwise leave this value uninitialized, resulting in all
|
||||||
|
// connections failing to pass sanity checks and never being returned
|
||||||
|
// to the pool.
|
||||||
|
super.forceCloseAll();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user