Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
4971f7d8
Commit
4971f7d8
authored
13 years ago
by
zimio
Browse files
Options
Downloads
Patches
Plain Diff
enable SM before sending negociation request
parent
db727675
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/xmpp/smacks.py
+2
-3
2 additions, 3 deletions
src/common/xmpp/smacks.py
with
2 additions
and
3 deletions
src/common/xmpp/smacks.py
+
2
−
3
View file @
4971f7d8
...
...
@@ -56,7 +56,7 @@ class Smacks():
l
=
stanza
.
getAttr
(
'
location
'
)
if
l
:
self
.
location
=
l
self
.
enabled
=
True
def
negociate
(
self
,
resume
=
True
):
# Every time we attempt to negociate, we must erase all previous info
...
...
@@ -65,6 +65,7 @@ class Smacks():
self
.
in_h
=
0
self
.
out_h
=
0
self
.
session_id
=
None
self
.
enabled
=
True
stanza
=
Acks
()
stanza
.
buildEnable
(
resume
)
...
...
@@ -118,7 +119,6 @@ class Smacks():
# If the server doesn't recognize previd, forget about resuming
# Ask for service discovery, etc..
if
stanza
.
getTag
(
'
item-not-found
'
):
self
.
enabled
=
False
self
.
resuming
=
False
self
.
negociate
()
self
.
con
.
_discover_server_at_connection
(
self
.
con
.
connection
)
...
...
@@ -126,7 +126,6 @@ class Smacks():
# Doesn't support resumption
if
stanza
.
getTag
(
'
feature-not-implemented
'
):
self
.
enabled
=
False
self
.
negociate
(
False
)
return
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment