lib/plezi/websockets/message_dispatch.rb in plezi-0.14.3 vs lib/plezi/websockets/message_dispatch.rb in plezi-0.14.4
- old
+ new
@@ -10,10 +10,16 @@
end
@drivers = [].to_set
module_function
+ @ppid = ::Process.pid
+
def pid
+ if(@ppid != ::Process.pid)
+ @pid = nil
+ @ppid = ::Process.pid
+ end
@pid ||= SecureRandom.urlsafe_base64.tap { |str| @prefix_len = str.length }
end
def _init
@drivers.each(&:connect)