clarify notifyNetMessagerRestart

This commit is contained in:
Joey Hess 2013-08-24 13:49:04 -04:00
parent df4199d7e3
commit 8587485994
2 changed files with 9 additions and 1 deletions

View file

@ -29,6 +29,10 @@ notifyNetMessagerRestart :: Assistant ()
notifyNetMessagerRestart =
flip writeSV () <<~ (netMessagerRestart . netMessager)
{- This can be used to get an early indication if the network has
- changed, to immediately restart a connection. However, that is not
- available on all systems, so clients also need to deal with
- restarting dropped connections in the usual way. -}
waitNetMessagerRestart :: Assistant ()
waitNetMessagerRestart = readSV <<~ (netMessagerRestart . netMessager)