IsConnected logic

This commit is contained in:
2026-09-08 15:41:44 +01:00
parent 56c7081e8f
commit 1ad9dd4ab7
3 changed files with 27 additions and 14 deletions
-5
View File
@@ -370,11 +370,6 @@ func parseSessionInfo(buf []byte, len int32) (*SessionInfoYAML, error) {
return &sessionInfo, nil
}
// sessionStatusOK will tell us if we are connected to the live data
func sessionStatusOK(status int) bool {
return (status & stConnected) > 0
}
// ToString will return a readable string of the struct
func (s *SessionInfoYAML) ToString() string {
stringified, _ := json.MarshalIndent(s, "", " ")