Skip to content

Commit

Permalink
Avoid doing anything with the date last used (used for pool ping func…
Browse files Browse the repository at this point in the history
…tionality)

if the pool is being closed.
  • Loading branch information
anthony-tuininga committed May 6, 2019
1 parent e53746b commit 7666dc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dpiConn.c
Expand Up @@ -254,7 +254,8 @@ static int dpiConn__close(dpiConn *conn, uint32_t mode, const char *tag,

// update last time used (if the session isn't going to be dropped)
// clear last time used (if the session is going to be dropped)
if (conn->sessionHandle) {
// do nothing, however, if pool is being closed
if (conn->sessionHandle && conn->pool->handle) {

// get the pointer from the context associated with the session
lastTimeUsed = NULL;
Expand Down

0 comments on commit 7666dc3

Please sign in to comment.