lib/include/class_knjappserver_threadding.rb in knjappserver-0.0.23 vs lib/include/class_knjappserver_threadding.rb in knjappserver-0.0.24

- old
+ new

@@ -37,16 +37,21 @@ } begin thread_obj.args[:running] = true yield(*args[:args]) - rescue Exception => e - handle_error(e) + rescue => e + self.handle_error(e) thread_obj.args[:error] = true thread_obj.args[:error_obj] = e ensure + STDOUT.print "Free thread ob-db.\n" if @debug @ob.db.free_thread if @ob.db.opts[:threadsafe] + + STDOUT.print "Free thread db-handler.\n" if @debug @db_handler.free_thread if @db_handler.opts[:threadsafe] + + STDOUT.print "Set args on thread.\n" if @debug thread_obj.args[:running] = false thread_obj.args[:done] = true end end \ No newline at end of file