lib/lead_zeppelin/apns/client.rb in lead_zeppelin-0.1.6 vs lib/lead_zeppelin/apns/client.rb in lead_zeppelin-0.1.7
- old
+ new
@@ -68,13 +68,15 @@
end
def remove_application(name)
Logger.info "removing application \"#{name}\""
Logger.thread 'r'
+
@semaphore.synchronize do
deleted = @applications.delete name
- Logger.warn "removing application \"#{name}\" failed! Name may be invalid." if deleted.nil?
end
+
+ Logger.warn "removing application \"#{name}\" failed! Name may be invalid." if deleted.nil?
end
def message(app_name, device_id, message, opts={})
Logger.debug "message: \"#{app_name}\", \"#{device_id}\", \"#{message}\""
Logger.thread 'm'
\ No newline at end of file