minus5 / gofreetds

Go Sql Server database driver.
MIT License
113 stars 48 forks source link

Connection pool is only cleaned once #68

Closed yogipatel closed 6 years ago

yogipatel commented 6 years ago

The connection pool's cleanupTicker channel is only received from once and so cleanup doesn't occur after the initial tick. Looks like a simple issue introduced by #64 — the cleanup select is no longer in an infinite for loop.

I'll try to put up a PR shortly.