diff --git a/examples/events/main.rb b/examples/events/main.rb index b423a49..6b0fd88 100644 --- a/examples/events/main.rb +++ b/examples/events/main.rb @@ -3,8 +3,6 @@ require "yaml" class Main - attr_reader :running - def initialize(**kwargs) @r_client = OBSWS::Requests::Client.new(**kwargs) @e_client = OBSWS::Events::Client.new(**kwargs) @@ -15,7 +13,7 @@ class Main end def run - sleep(0.1) while running + sleep(0.1) while @running end def infostring