changeset 0940684e9fb8 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=0940684e9fb8 description: [tmolitor] use uuid instead of plain counting integers for stanza ids. Fixes #8202
diffstat:
src/common/gajim.py | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-)
diffs (24 lines):
diff -r ba73423fb6e1 -r 0940684e9fb8 src/common/gajim.py --- a/src/common/gajim.py Sat Dec 12 13:52:18 2015 +0100 +++ b/src/common/gajim.py Thu Dec 17 20:10:06 2015 +0100 @@ -32,6 +32,7 @@ import logging import locale import gi +import uuid
from common import config import nbxmpp @@ -239,11 +240,8 @@ # Capabilities hash per account caps_hash = {}
-global_id = 0 def get_an_id(): - global global_id - global_id += 1 - return global_id + return str(uuid.uuid4())
def get_nick_from_jid(jid): pos = jid.find('@')