From 472ec3556a66530e7d2255f75ced81cbbf3a1c74 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Fri, 5 Dec 2025 18:42:57 -0800 Subject: Improve error handling, logging, and fix race condition in Disconnect - Add logging for unhandled transaction types in Client.HandleTransaction - Fix race condition in Client.Disconnect by protecting done channel with mutex - Add TranServerMsg to transaction type names map - Use Time type instead of raw byte array in File.flattenedFileObject - Improve error message in handleFileTransfer to include reference number - Simplify return statement in HandleGetFileInfo --- hotline/file_wrapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hotline/file_wrapper.go') diff --git a/hotline/file_wrapper.go b/hotline/file_wrapper.go index b80bc4b..de3cbe4 100644 --- a/hotline/file_wrapper.go +++ b/hotline/file_wrapper.go @@ -209,7 +209,7 @@ func (f *File) Delete() error { func (f *File) flattenedFileObject() (*flattenedFileObject, error) { dataSize := make([]byte, 4) - mTime := [8]byte{} + var mTime Time ft := defaultFileType -- cgit