Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
5fb40a6c by lovetox at 2022-05-28T12:00:37+02:00
ci: Use python3 for deploy script
- - - - -
1 changed file:
- .ci/deploy.py
Changes:
=====================================
.ci/deploy.py
=====================================
@@ -13,7 +13,7 @@ PASSWORD = os.environ['PYPI_TOKEN']
def build() -> None:
cmd = [
- 'python',
+ 'python3',
'setup.py',
'sdist',
'bdist_wheel'
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/5fb40a6c546aca5303994a1b…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/5fb40a6c546aca5303994a1b…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
5516d597 by lovetox at 2022-05-28T11:08:56+02:00
fix: Client: Disconnect after stream restart in Login mode
RFC 6120 states that ending the stream after successful auth is not
allowed because the stream is considererd ended. Sending </stream:stream>
would run into a parser error. So we restart the stream and end it afterwards.
- - - - -
1 changed file:
- nbxmpp/client.py
Changes:
=====================================
nbxmpp/client.py
=====================================
@@ -645,6 +645,11 @@ class Client(Observable):
# other connection methods if an error happensafterwards
self._connect_successful = True
+ if self._stream_authenticated and self._mode.is_login_test:
+ self.notify('login-successful')
+ self.disconnect()
+ return
+
self.state = StreamState.WAIT_FOR_FEATURES
elif self.state == StreamState.WAIT_FOR_FEATURES:
@@ -687,14 +692,6 @@ class Client(Observable):
elif self.state == StreamState.AUTH_SUCCESSFUL:
self._stream_authenticated = True
- if self._mode.is_login_test:
- self.notify('login-successful')
- # Reset parser because we will receive a new stream header
- # which will otherwise lead to a parsing error
- self._dispatcher.reset_parser()
- self.disconnect()
- return
-
self._start_stream()
elif self.state == StreamState.AUTH_FAILED:
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/5516d597e8158fd746a4d501…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/5516d597e8158fd746a4d501…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
f43aeeb5 by lovetox at 2022-05-28T09:28:09+02:00
fix: Don’t fail on GajimPlugin equality test
- - - - -
7857ebea by lovetox at 2022-05-28T09:48:41+02:00
fix: Plugins: Unregister modules after calling deactivate()
- - - - -
2 changed files:
- gajim/plugins/gajimplugin.py
- gajim/plugins/pluginmanager.py
Changes:
=====================================
gajim/plugins/gajimplugin.py
=====================================
@@ -96,6 +96,8 @@ def load_config(self) -> None:
self.config.load()
def __eq__(self, plugin: Any) -> bool:
+ if not isinstance(plugin, GajimPlugin):
+ return False
return self.manifest.short_name == plugin.manifest.short_name
def __ne__(self, plugin: Any) -> bool:
=====================================
gajim/plugins/pluginmanager.py
=====================================
@@ -543,10 +543,12 @@ def deactivate_plugin(self, plugin: GajimPlugin) -> None:
self._remove_events_handler_from_ged(plugin)
self._remove_name_from_encryption_plugins(plugin)
- self._unregister_modules_with_handlers(plugin)
- # removing plug-in from active plug-ins list
+ # deactivate() must be before _unregister_modules_with_handlers(),
+ # because plugin.deactivate() may want to use the module
plugin.deactivate()
+
+ self._unregister_modules_with_handlers(plugin)
self.active_plugins.remove(plugin)
app.settings.set_plugin_setting(plugin.manifest.short_name,
'active',
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/2bdb296a66147ed4e52be52d77d434e…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/2bdb296a66147ed4e52be52d77d434e…
You're receiving this email because of your account on dev.gajim.org.