mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 07:50:05 +00:00 
			
		
		
		
	Don't process old alerts
This commit is contained in:
		
							parent
							
								
									f2173a683e
								
							
						
					
					
						commit
						79bac04586
					
				
					 1 changed files with 9 additions and 2 deletions
				
			
		|  | @ -238,8 +238,15 @@ AlertLayerHandler::FeatureList(awips::Phenomenon phenomenon, bool alertActive) | |||
| void AlertLayerHandler::HandleAlert(const types::TextEventKey& key, | ||||
|                                     size_t                     messageIndex) | ||||
| { | ||||
|    auto message = | ||||
|       manager::TextEventManager::Instance().message_list(key).at(messageIndex); | ||||
|    auto& textEventManager = manager::TextEventManager::Instance(); | ||||
| 
 | ||||
|    // Skip alert if there are more messages to be processed
 | ||||
|    if (messageIndex + 1 < textEventManager.message_count(key)) | ||||
|    { | ||||
|       return; | ||||
|    } | ||||
| 
 | ||||
|    auto message = textEventManager.message_list(key).at(messageIndex); | ||||
|    std::unordered_set<std::pair<awips::Phenomenon, bool>, | ||||
|                       AlertTypeHash<std::pair<awips::Phenomenon, bool>>> | ||||
|       alertsUpdated {}; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat