 		
 		os_log("Woken to perform account refresh.", log: log, type: .info)
 		
+		let startingUnreadCount = unreadCount
+		let updateCompletionHandler = { [unowned self] in
+			if startingUnreadCount != self.unreadCount {
+				completionHandler(.newData)
+			} else {
+				completionHandler(.noData)
+			}
+		}
+		
 		AccountManager.shared.refreshAll()
 		
 		os_log("Accounts requested to begin refresh.", log: self.log, type: .debug)

			
			UIApplication.shared.endBackgroundTask(self.backgroundUpdateTask)
			self.backgroundUpdateTask = UIBackgroundTaskIdentifier.invalid
			completionHandler(.newData)

		}
		
		completionHandler(.newData)
		
	}
	

			self.backgroundUpdateTask = UIApplication.shared.beginBackgroundTask {
				UIApplication.shared.endBackgroundTask(self.backgroundUpdateTask)
				self.backgroundUpdateTask = UIBackgroundTaskIdentifier.invalid
				updateCompletionHandler()
			}
			
			sleep(1)
