mirror of
				https://github.com/django/daphne.git
				synced 2025-11-04 01:27:33 +03:00 
			
		
		
		
	Issue#393: Clear session modified flag on enforce_ordering session save (#402)
This commit is contained in:
		
							parent
							
								
									4f517bb9fc
								
							
						
					
					
						commit
						291405afeb
					
				| 
						 | 
				
			
			@ -99,6 +99,7 @@ def enforce_ordering(func=None, slight=False):
 | 
			
		|||
                # Mark next message order as available for running
 | 
			
		||||
                message.channel_session["__channels_next_order"] = order + 1
 | 
			
		||||
                message.channel_session.save()
 | 
			
		||||
                message.channel_session.modified = False
 | 
			
		||||
                # Requeue any pending wait channel messages for this socket connection back onto it's original channel
 | 
			
		||||
                while True:
 | 
			
		||||
                    wait_channel = "__wait__.%s" % message.reply_channel.name
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user