Fix filestoraged: s/event/event.type/. Can now exchange files.

This commit is contained in:
Philippe Pittoli 2023-02-10 11:54:34 +01:00
parent 0d1326a566
commit 0dde689056

View File

@ -188,7 +188,7 @@ class FileStorage::Service < IPC
self.loop do |event| self.loop do |event|
begin begin
case event case event.type
when LibIPC::EventType::Timer when LibIPC::EventType::Timer
Baguette::Log.debug "LibIPC::EventType::Timer" if @print_timer Baguette::Log.debug "LibIPC::EventType::Timer" if @print_timer
@ -229,7 +229,7 @@ class FileStorage::Service < IPC
when LibIPC::EventType::MessageTx when LibIPC::EventType::MessageTx
Baguette::Log.debug "LibIPC::EventType::MessageTx: #{event.fd}" Baguette::Log.debug "LibIPC::EventType::MessageTx: #{event.fd}"
else else
Baguette::Log.warning "unhandled LibIPC event: #{event.class}" Baguette::Log.warning "unhandled LibIPC event: #{event.type}"
end end
rescue exception rescue exception