def clientConnectionLost(self, connector, reason):
        """
        @summary: Connection lost event
        @param connector: twisted connector use for rfb connection (use reconnect to restart connection)
        @param reason: str use to advertise reason of lost connection
        """
        log.info("connection lost : %s"%reason)
        RFBScreenShotFactory.__INSTANCE__ -= 1
        if(RFBScreenShotFactory.__INSTANCE__ == 0):
            reactor.stop()
            app.exit()
def clientConnectionLost ( self , connector , reason ) : log . info ( "connection lost : %s" % reason ) RFBScreenShotFactory . __INSTANCE__ -= 1 if ( RFBScreenShotFactory . __INSTANCE__ == 0 ) : reactor . stop ( ) app . exit ( )
@summary: Connection lost event
        @param connector: twisted connector use for rfb connection (use reconnect to restart connection)
        @param reason: str use to advertise reason of lost connection