FIX vpn state init
This commit is contained in:
parent
a0cdcce146
commit
003b0ce937
|
@ -34,7 +34,7 @@ instance Exec VPN where
|
||||||
start (VPN (text, colors)) cb =
|
start (VPN (text, colors)) cb =
|
||||||
withDBusClientConnection cb "VPN" $ \c -> do
|
withDBusClientConnection cb "VPN" $ \c -> do
|
||||||
let dpy = displayMaybe cb iconFormatter . Just =<< readState
|
let dpy = displayMaybe cb iconFormatter . Just =<< readState
|
||||||
s <- newMVar S.empty
|
s <- newEmptyMVar
|
||||||
mapRIO (VEnv c s dpy) $ do
|
mapRIO (VEnv c s dpy) $ do
|
||||||
initState
|
initState
|
||||||
vpnAddedListener addedCallback
|
vpnAddedListener addedCallback
|
||||||
|
|
Loading…
Reference in New Issue