Issue#393: Clear session modified flag on enforce_ordering session save (#402)

This commit is contained in:
Yatish Bathini 2016-10-22 02:59:45 +08:00 committed by Andrew Godwin
parent 4f517bb9fc
commit 291405afeb

View File

@ -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