logic error

This commit is contained in:
Joey Hess 2013-03-07 14:08:50 -04:00
parent 6e7a43ab61
commit 99989bcc8e

View file

@ -129,7 +129,7 @@ enqueue reason schedule t info
q <- getAssistant transferQueue
liftIO $ atomically $ do
l <- readTVar (queuelist q)
if (new `elem` l)
if (new `notElem` l)
then do
void $ modifyTVar' (queuesize q) succ
void $ modifyTVar' (queuelist q) modlist