xpra icon
Bug tracker and wiki

Changeset 1270 in xpra


Ignore:
Timestamp:
08/04/12 07:27:37 (10 months ago)
Author:
antoine
Message:

because of threading, these may end up being 'None' during shutdown.. this code is ugly and duplicated, but avoids the error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xpra/client.py

    r1267 r1270  
    486486 
    487487    def send_positional(self, packet): 
    488         self._protocol.source.queue_positional_packet(packet) 
     488        p = self._protocol 
     489        if p is not None: 
     490            s = p.source 
     491            if s: 
     492                s.queue_positional_packet(packet) 
    489493 
    490494    def send_mouse_position(self, packet): 
    491         self._protocol.source.queue_mouse_position_packet(packet) 
     495        p = self._protocol 
     496        if p is not None: 
     497            s = p.source 
     498            if s: 
     499                s.queue_mouse_position_packet(packet) 
    492500 
    493501    def make_hello(self, challenge_response=None): 
Note: See TracChangeset for help on using the changeset viewer.