xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #184: cbchange.patch

File cbchange.patch, 1.5 KB (added by Mike, 8 years ago)
  • src/xpra/protocol.py

     
    454454                        #replace placeholder with the raw_data packet data:
    455455                        packet[index] = raw_data
    456456                    raw_packets = {}
    457                 gobject.idle_add(self._process_packet, packet)
     457                try:
     458                    self._process_packet_cb(self, packet)
     459                    self.input_packetcount += 1
     460                except KeyboardInterrupt:
     461                    raise
     462                except:
     463                    log.warn("Unhandled error while processing packet from peer",
     464                             exc_info=True)
    458465                NOYIELD or time.sleep(0)
    459466
    460     def _process_packet(self, decoded):
    461         if self._closed:
    462             log.warn("Ignoring stray packet read after connection"
    463                      " allegedly closed (%s)", dump_packet(decoded))
    464             return
    465         try:
    466             self._process_packet_cb(self, decoded)
    467             self.input_packetcount += 1
    468         except KeyboardInterrupt:
    469             raise
    470         except:
    471             log.warn("Unhandled error while processing packet from peer",
    472                      exc_info=True)
    473             # Ignore and continue, maybe things will work out anyway
    474         return False
    475 
    476467    def flush_then_close(self, last_packet):
    477468        self._add_packet_to_queue(last_packet)
    478469        self.terminate_io_threads()