lib/lead_zeppelin/apns/client.rb in lead_zeppelin-0.1.8 vs lib/lead_zeppelin/apns/client.rb in lead_zeppelin-0.1.9
- old
+ new
@@ -68,15 +68,15 @@
end
def remove_application(name)
Logger.info "removing application \"#{name}\""
Logger.thread 'r'
-
+
@semaphore.synchronize do
deleted = @applications.delete name
- end
- Logger.warn "removing application \"#{name}\" failed! Name may be invalid." if deleted.nil?
+ Logger.warn "removing application \"#{name}\" failed! Name may be invalid." if deleted.nil?
+ end
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