X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FErrorAction.ts;fp=ts%2Fstructs%2FErrorAction.ts;h=fed9258c47fb9e4e2613d5193a27961617110ee4;hb=fed2245c60159f6c074c9ed5c0f3ce273ad9841b;hp=cbdfa17e6801ccf9c7341b241583f730689e6814;hpb=e9c2970adecaa14b3e83e11eb160a7bcbdae20da;p=ldk-java diff --git a/ts/structs/ErrorAction.ts b/ts/structs/ErrorAction.ts index cbdfa17e..fed9258c 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,7 @@ 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; } }