X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=ts%2Fstructs%2FEventHandler.ts;h=9179c447bc122a1d0ce91ad05fac42bbdd2333ac;hb=0fee03a8095f5599f8eccd920c1b1af6b3a20260;hp=1d7c9229a0669eebf88e2904fe60a2d1993b54ce;hpb=b0c50b891cbca28d3bd1d86276c132ff5221d8e4;p=ldk-java diff --git a/ts/structs/EventHandler.ts b/ts/structs/EventHandler.ts index 1d7c9229..9179c447 100644 --- a/ts/structs/EventHandler.ts +++ b/ts/structs/EventHandler.ts @@ -34,7 +34,6 @@ import * as bindings from '../bindings' // TODO: figure out location // todo: in-line interface filling handle_event (event: number): void { Event event_hu_conv = Event.constr_from_ptr(event); - event_hu_conv.ptrs_to.add(this); arg.handle_event(event_hu_conv); }, @@ -53,7 +52,7 @@ import * as bindings from '../bindings' // TODO: figure out location held: EventHandler; } public void handle_event(Event event) { - bindings.EventHandler_handle_event(this.ptr, event.ptr); + bindings.EventHandler_handle_event(this.ptr, event == null ? 0 : event.ptr & ~1); } }