X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FErrorAction.ts;h=25bf0917d9c2ca34b92e7db45c14cb5fc43bf485;hb=ebbb6f57d6b5072730fd50ef3a011db1d6577ad9;hp=cbdfa17e6801ccf9c7341b241583f730689e6814;hpb=22f5f4208b1f3b5542292250f1612b944f5cd7fd;p=ldk-java diff --git a/ts/structs/ErrorAction.ts b/ts/structs/ErrorAction.ts index cbdfa17e..25bf0917 100644 --- a/ts/structs/ErrorAction.ts +++ b/ts/structs/ErrorAction.ts @@ -29,6 +29,7 @@ export class DisconnectPeer extends ErrorAction { super(null, ptr); const msg: number = obj.msg; const msg_hu_conv: ErrorMessage = new ErrorMessage(null, msg); + msg_hu_conv.ptrs_to.add(this); this.msg = msg_hu_conv; } } @@ -43,6 +44,15 @@ export class SendErrorMessage extends ErrorAction { super(null, ptr); const msg: number = obj.msg; const msg_hu_conv: ErrorMessage = new ErrorMessage(null, msg); + msg_hu_conv.ptrs_to.add(this); this.msg = msg_hu_conv; } +} + public ErrorAction clone() { + number ret = bindings.ErrorAction_clone(this.ptr); + ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + }