Fixes getConnection() so that it runs only once.

The PR comment suggested that I alter the callback so that I pass the
connection to it.  However, doing this breaks Whiskey.  With the code as
presented, at least on my laptop, all of Whiskey's test cases pass.