platform: Fixes and improvements

This commit is contained in:
世界
2023-04-05 04:38:56 +08:00
parent 28aa4c4d1f
commit 8b64446274
16 changed files with 33 additions and 31 deletions

View File

@@ -1,5 +1,3 @@
//go:build darwin
package libbox
import (
@@ -46,6 +44,7 @@ func clientConnect(sharedDirectory string) (net.Conn, error) {
}
func (c *CommandClient) Connect() error {
common.Close(c.conn)
conn, err := clientConnect(c.sharedDirectory)
if err != nil {
return err