lib/lead_zeppelin/apns/client.rb in lead_zeppelin-0.1.2 vs lib/lead_zeppelin/apns/client.rb in lead_zeppelin-0.1.3
- old
+ new
@@ -7,11 +7,12 @@
def initialize(opts={}, &configure)
Logger.info "instantiating client with options: #{opts.inspect}"
Logger.thread 'c'
@semaphore = Mutex.new
@opts = opts
+ @applications = {}
- self.instance_eval &configure
+ self.instance_eval &configure if configure
# FIXME
@thread_count = Queue.new
(opts[:client_threads] || CLIENT_THREADS).times {|t| @thread_count << t}
end
\ No newline at end of file