lib/legion/service.rb in legionio-0.3.0 vs lib/legion/service.rb in legionio-0.3.1
- old
+ new
@@ -60,11 +60,12 @@
def shutdown
Legion::Logging.info('Legion::Service.shutdown was called')
@shutdown = true
Legion::Settings[:client][:shutting_down] = true
- sleep(1)
+ sleep(0.5)
Legion::Extensions.shutdown
+ sleep(1)
Legion::Data.shutdown
Legion::Cache.shutdown
Legion::Transport::Connection.shutdown
Legion::Crypt.shutdown
end