Archived
3
0
This commit is contained in:
Karchnu 2020-07-13 14:16:25 +02:00
parent df269e4423
commit b5d8c5a6b1

View File

@ -2,7 +2,7 @@
class IPC::Context class IPC::Context
property base_timer : Int32 = LibIPC::INFTIM property base_timer : Int32 = LibIPC::INFTIM
property timer : Int32 = LibIPC::INFTIM property timer : Int32 = LibIPC::INFTIM
getter context : LibIPC::Ctx getter context : LibIPC::Ctx
def initialize def initialize
@context = LibIPC::Ctx.new @context = LibIPC::Ctx.new
@ -142,6 +142,7 @@ class IPC::Context
m = String.new r.error_message.to_slice m = String.new r.error_message.to_slice
raise Exception.new "cannot correctly close the connection: #{m}" raise Exception.new "cannot correctly close the connection: #{m}"
end end
LibIPC.ipc_ctx_free(self.pointer)
@closed = true @closed = true
end end