diff options
author | Joey Hess <joey@kitenet.net> | 2012-10-26 00:10:41 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-10-26 00:10:41 -0400 |
commit | 89a33e4ce1219dff81f6c5fd296b6e6ba6866ea3 (patch) | |
tree | d5d88ff78f40fd9e4fc932a5ccfadcf9b17fdd31 /Assistant/Threads/MountWatcher.hs | |
parent | b4f43466b1100b158d2a69c01e646896ba34494f (diff) | |
parent | 0a87d90900949e6f7e75ab2ac83b4135746d7602 (diff) |
Merge branch 'master' into xmpp
Conflicts:
Assistant/Threads/MountWatcher.hs
Assistant/Threads/NetWatcher.hs
Diffstat (limited to 'Assistant/Threads/MountWatcher.hs')
-rw-r--r-- | Assistant/Threads/MountWatcher.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Assistant/Threads/MountWatcher.hs b/Assistant/Threads/MountWatcher.hs index c36b544a7..881f9d8d6 100644 --- a/Assistant/Threads/MountWatcher.hs +++ b/Assistant/Threads/MountWatcher.hs @@ -52,7 +52,8 @@ mountWatcherThread st handle scanremotes pushnotifier = thread $ #if WITH_DBUS dbusThread :: ThreadState -> DaemonStatusHandle -> ScanRemoteMap -> PushNotifier -> IO () -dbusThread st dstatus scanremotes pushnotifier = E.catch (go =<< connectSession) onerr +dbusThread st dstatus scanremotes pushnotifier = + E.catch (runClient getSessionAddress go) onerr where go client = ifM (checkMountMonitor client) ( do @@ -74,7 +75,7 @@ dbusThread st dstatus scanremotes pushnotifier = E.catch (go =<< connectSession) onerr :: E.SomeException -> IO () onerr e = do runThreadState st $ - warning $ "Failed to use dbus; falling back to mtab polling (" ++ show e ++ ")" + warning $ "dbus failed; falling back to mtab polling (" ++ show e ++ ")" pollinstead pollinstead = pollingThread st dstatus scanremotes pushnotifier |