On Mon, 2010-12-06 at 16:11 +0200, Umut Aydin wrote:
> Hello again
> 
> I couldn't get any answer to my question and I think I couldn't point
> my problem clearly.
> 
> https://github.com/naimon/Jobbar/blob/master/src/lib/server.py
> 
> On the line #130 I need to check if the socket is still connected.

Disconnection is an *event*: connectionLost will be called on the
protocol. Record the fact you're disconnected inside that method, rather
than checking the socket.


_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to