Skip to content

Commit

Permalink
fix build deferring agent initialization
Browse files Browse the repository at this point in the history
ref #3988
  • Loading branch information
Brian J. Cardiff authored and Brian J. Cardiff committed Feb 22, 2017
1 parent dd634fd commit b185799
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/compiler/crystal/tools/playground/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ module Crystal::Playground
require "compiler/crystal/tools/playground/agent"
class Crystal::Playground::Agent
@@instance = Crystal::Playground::Agent.new("ws://localhost:#{port}/agent/#{session_key}/#{tag}", #{tag})
def self.instance
@@instance
@@instance ||= Crystal::Playground::Agent.new("ws://localhost:#{port}/agent/#{session_key}/#{tag}", #{tag})
end
end
Expand Down

0 comments on commit b185799

Please sign in to comment.