From a024c9ece14d3097b3f72f2dc831444afd695d86 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 12 Mar 2025 07:54:03 -0500 Subject: attempting to pass off the socket --- exit.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 exit.go (limited to 'exit.go') diff --git a/exit.go b/exit.go new file mode 100644 index 0000000..320778f --- /dev/null +++ b/exit.go @@ -0,0 +1,24 @@ +// Copyright 2017-2025 WIT.COM Inc. All rights reserved. +// Use of this source code is governed by the GPL 3.0 + +package main + +import ( + "os" + + "go.wit.com/log" +) + +func okExit(note string) { + if note != "" { + log.Info("gus exit:", note, "ok") + } + me.myGui.Close() + os.Exit(0) +} + +func badExit(err error) { + log.Info("gus failed: ", err) + me.myGui.Close() + os.Exit(-1) +} -- cgit v1.2.3