Closed default-username-852 closed 4 years ago
It already does that. The function signature for unlink
is fn unlink(data: *mut Data, component: i32, port: i32, subnet: i32) -> bool
. It's just that now, there is another case which returns false.
Turns out I forgot to update the code on the C# side. That is changed in 7aa2787 though.
Fixed bug where program would crash when trying to unlink a component and subnet which weren't connected. Instead, the program returns false from the call to
unlink
.