perhaps this fixes the stall tbd

This commit is contained in:
Joey Hess 2013-05-21 21:40:37 -04:00
parent a600471a23
commit 6e04194e84

View file

@ -137,7 +137,7 @@ xmppPush cid gitpush = runPush SendPack cid $ do
liftIO $ do liftIO $ do
mapM_ killThread [t1, t2] mapM_ killThread [t1, t2]
mapM_ hClose [inh, outh, controlh] mapM_ hClose [inh, outh, controlh]
return r return r
where where
toxmpp seqnum inh = do toxmpp seqnum inh = do
@ -167,6 +167,7 @@ xmppPush cid gitpush = runPush SendPack cid $ do
liftIO $ do liftIO $ do
hPrint controlh (ExitFailure 1) hPrint controlh (ExitFailure 1)
hFlush controlh hFlush controlh
killThread =<< myThreadId
installwrapper tmpdir = liftIO $ do installwrapper tmpdir = liftIO $ do
createDirectoryIfMissing True tmpdir createDirectoryIfMissing True tmpdir