Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / SocketDescriptor.java
index c1bdaf55971aef36f86281db2396f0be40e178fe..fd8454c7509286596287ec4e33a1e3edf5796b98 100644 (file)
@@ -144,7 +144,7 @@ public class SocketDescriptor extends CommonBase {
         */
        public SocketDescriptor clone() {
                long ret = bindings.SocketDescriptor_clone(this.ptr);
-               if (ret < 1024) { return null; }
+               if (ret >= 0 && ret < 1024) { return null; }
                SocketDescriptor ret_hu_conv = new SocketDescriptor(null, ret);
                ret_hu_conv.ptrs_to.add(this);
                return ret_hu_conv;