fix close function of connection pool.
This commit is contained in:
parent
2edf80c0c5
commit
a54f764761
@ -65,7 +65,7 @@ close (Connection mv) = do
|
|||||||
h <- swapMVar mv (error "connection already closed")
|
h <- swapMVar mv (error "connection already closed")
|
||||||
quit h
|
quit h
|
||||||
hClose h
|
hClose h
|
||||||
close _ = return ()
|
close (ConnectionPool p) = destroyAllResources p
|
||||||
|
|
||||||
useConnection :: (Handle -> IO a) -> Connection -> IO a
|
useConnection :: (Handle -> IO a) -> Connection -> IO a
|
||||||
useConnection f (Connection mv) = withMVar mv f
|
useConnection f (Connection mv) = withMVar mv f
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user