Skip to content

Commit 1e0cabd

Browse files
committed
fix deregister: delete the object from its owner, not the owner from itself
1 parent cee2a65 commit 1e0cabd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftOCADevice/OCA/Device.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public actor OcaDevice {
159159
if let object = object as? OcaOwnable,
160160
let owner = await objects[object.owner] as? OcaBlock
161161
{
162-
try await owner.delete(actionObject: owner)
162+
try await owner.delete(actionObject: object)
163163
}
164164
objects[object.objectNumber] = nil
165165
peerToPeerGroupers[object.objectNumber] = nil

0 commit comments

Comments
 (0)