summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'state.go')
-rw-r--r--state.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/state.go b/state.go
index 48b8907..58df6c0 100644
--- a/state.go
+++ b/state.go
@@ -84,6 +84,12 @@ func setState(ctx context.Context, newState uint32) error {
return err
}
atomic.StoreUint32(&state, newState)
+ /*
+ * TODO: Various actions about connections during state changes:
+ * If set to 0, kill all connections. If set to 2, send all channels
+ * a message that selections are open. If set to 1, send all channels
+ * a message saying that selections are closed.
+ */
return nil
}