webapp: Now allows restarting any threads that crash.
This commit is contained in:
parent
07717a9b2b
commit
76ddf9b6d3
30 changed files with 124 additions and 61 deletions
|
@ -33,7 +33,7 @@ netWatcherThread = thread dbusThread
|
|||
netWatcherThread = thread noop
|
||||
#endif
|
||||
where
|
||||
thread = NamedThread "NetWatcher"
|
||||
thread = namedThread "NetWatcher"
|
||||
|
||||
{- This is a fallback for when dbus cannot be used to detect
|
||||
- network connection changes, but it also ensures that
|
||||
|
@ -41,7 +41,7 @@ netWatcherThread = thread noop
|
|||
- while (despite the local network staying up), are synced with
|
||||
- periodically. -}
|
||||
netWatcherFallbackThread :: NamedThread
|
||||
netWatcherFallbackThread = NamedThread "NetWatcherFallback" $
|
||||
netWatcherFallbackThread = namedThread "NetWatcherFallback" $
|
||||
runEvery (Seconds 3600) <~> handleConnection
|
||||
|
||||
#if WITH_DBUS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue