def _on_close()

in fbtftp/base_handler.py [0:0]


    def _on_close(self):
        """
        Called at the end of a session.

        This method sets number of retransmissions and calls the stats callback
        at the end of the session.
        """
        self._stats.retransmits = self._global_retransmits
        self._stats_callback(self._stats)