fix #4876
[ghc-base.git] / Control / Concurrent / SampleVar.hs
index c66241e..68e4b30 100644 (file)
@@ -120,5 +120,5 @@ writeSampleVar (SampleVar svar) v = mask_ $ do
 isEmptySampleVar :: SampleVar a -> IO Bool
 isEmptySampleVar (SampleVar svar) = do
    (readers, _) <- readMVar svar
-   return (readers == 0)
+   return (readers <= 0)