diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/CoreConnector.vala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/CoreConnector.vala b/src/gui/CoreConnector.vala index 08ed43f..9edbc7d 100644 --- a/src/gui/CoreConnector.vala +++ b/src/gui/CoreConnector.vala @@ -40,7 +40,9 @@ public class CoreConnector { Erl.Node node = Erl.Node("ephraim-gtk", "magiccookie", 0); Erl.Connection con = node.connect("ephraim-core@avalon.local"); - con.reg_send("ephraim", Erl.mk_self_pid(node)); + Erl.Term self = Erl.mk_self_pid(node); + + con.reg_send("ephraim", Erl.format("{register_ui,~w}", self)); while(running) { TermStore response = new TermStore(); @@ -62,6 +64,8 @@ public class CoreConnector { } } + con.reg_send("ephraim", Erl.format("{unregister_ui,~w}", self)); + return null; } |