diff options
Diffstat (limited to 'src/uapi.go')
-rw-r--r-- | src/uapi.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/uapi.go b/src/uapi.go index 670ecc4..dc8be66 100644 --- a/src/uapi.go +++ b/src/uapi.go @@ -260,9 +260,8 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError { err := func() error { peer.mutex.Lock() defer peer.mutex.Unlock() - - endpoint := NewEndpoint() - if err := endpoint.SetDst(value); err != nil { + endpoint, err := CreateEndpoint(value) + if err != nil { return err } peer.endpoint = endpoint |