diff libervia/backend/plugins/plugin_exp_jingle_stream.py @ 4341:e9971a4b0627

remove uses of twisted.internet.defer.returnValue This function has been deprecated in Twisted 24.7.0.
author Povilas Kanapickas <povilas@radix.lt>
date Wed, 11 Dec 2024 01:17:09 +0200
parents 0d7bb4df2343
children
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_exp_jingle_stream.py	Tue Dec 03 00:53:18 2024 +0100
+++ b/libervia/backend/plugins/plugin_exp_jingle_stream.py	Wed Dec 11 01:17:09 2024 +0200
@@ -267,7 +267,7 @@
         )
 
         if not C.bool(confirm_data["answer"]):
-            defer.returnValue(False)
+            return False
         try:
             port = int(confirm_data["port"])
         except (ValueError, KeyError):
@@ -279,7 +279,7 @@
         finished_d = content_data["finished_d"] = defer.Deferred()
         args = [client, session, content_name, content_data]
         finished_d.addCallbacks(self._finished_cb, self._finished_eb, args, None, args)
-        defer.returnValue(True)
+        return True
 
     def jingle_handler(self, client, action, session, content_name, desc_elt):
         content_data = session["contents"][content_name]