Skip to content

Commit

Permalink
(Testing branch) testing CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverLok committed Aug 20, 2024
1 parent 4870aed commit def04cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/unix_socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (

func startExclusiveUnixServer() error {
var socketPath = config.UNIX_SOCKET_PATH.Get()
os.Remove(socketPath)

unixSocket, err := net.Listen("unix", socketPath)
if err != nil {
Expand All @@ -26,6 +25,7 @@ func startExclusiveUnixServer() error {

defer os.Remove(socketPath)
defer unixSocket.Close()

c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
go func() {
Expand Down

0 comments on commit def04cd

Please sign in to comment.