xpra icon
Bug tracker and wiki

Ticket #2676: udp-fix.diff

File udp-fix.diff, 1.1 KB (added by Niki Waibel, 2 months ago)
  • /usr/lib64/python3.7/site-packages/xpra/net/udp_protocol.py

    old new  
    169169            self.control_timer = None
    170170            self.source_remove(ct)
    171171
    172     def send_control_failed():
    173         #resend a new one
    174         self.cancel_control_timer()
    175         self.send_control()
    176 
    177172    def send_control(self):
    178173        self.control_timer = None
    179174        self.control_timer_due = 0
     
    182177        missing = self._get_missing()
    183178        packet = ("udp-control", self.mtu, self.asynchronous_receive_enabled, self.last_sequence, self.highest_sequence, missing, tuple(self.cancel))
    184179        log("send_control() packet(%s)=%s", self.pending_packets, packet)
     180        def send_control_failed():
     181            #resend a new one
     182            self.cancel_control_timer()
     183            self.send_control()
    185184        self._add_packet_to_queue(packet, fail_cb=self.send_control_failed, synchronous=False)
    186185        self.cancel = set()
    187186        self.schedule_control()