lib/pigato/client.rb in pigato-0.4.0 vs lib/pigato/client.rb in pigato-0.4.1
- old
+ new
@@ -23,10 +23,10 @@
end
end
def request service, request, opts = {}
iid = get_iid
- return nil if @@sockets[iid] == nil
+ start if @@sockets[iid] == nil && @conf[:autostart]
socket = @@sockets[iid]
request = [Oj.dump(request), Oj.dump(opts)]
rid = SecureRandom.uuid