Commit ee443b0d authored by Dan Pascu's avatar Dan Pascu

Fixed spurious ringtone delay in certain cases

parent bc83a318
...@@ -5289,9 +5289,12 @@ class SessionManager(object): ...@@ -5289,9 +5289,12 @@ class SessionManager(object):
request = self.incoming_requests[0] request = self.incoming_requests[0]
ringtone_type = self.SecondaryRingtone ringtone_type = self.SecondaryRingtone
if outbound_ringtone.type is self.PrimaryRingtone or self.active_session is not None and self.active_session.state == 'connected/*': if outbound_ringtone.type is self.PrimaryRingtone:
ringtone_type = self.SecondaryRingtone ringtone_type = self.SecondaryRingtone
initial_delay = 1 # have a small delay to avoid sounds overlapping initial_delay = 1 # have a small delay to avoid sounds overlapping
elif self.active_session is not None and self.active_session.state == 'connected/*':
ringtone_type = self.SecondaryRingtone
initial_delay = 0
else: else:
initial_delay = 0 initial_delay = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment