summaryrefslogtreecommitdiff
path: root/Assistant/Threads/NetWatcher.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Assistant/Threads/NetWatcher.hs')
-rw-r--r--Assistant/Threads/NetWatcher.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/Assistant/Threads/NetWatcher.hs b/Assistant/Threads/NetWatcher.hs
index 2af880e02..12e764016 100644
--- a/Assistant/Threads/NetWatcher.hs
+++ b/Assistant/Threads/NetWatcher.hs
@@ -123,11 +123,7 @@ listenWicdConnections client callback =
#endif
handleConnection :: Assistant ()
-handleConnection = do
- d <- getAssistant id
- liftIO . reconnectRemotes (threadName d) (threadState d)
- (daemonStatusHandle d) (scanRemoteMap d) (Just $ pushNotifier d)
- =<< networkRemotes
+handleConnection = reconnectRemotes True =<< networkRemotes
{- Finds network remotes. -}
networkRemotes :: Assistant [Remote]