def die(self):
        """Used to kill the server (joining threads, etc...)
        """
        print("Killing all client threads...")
        self.please_die = True
        for tc in self.accepted.values():
            tc.die()
            tc.join()
Used to kill the server (joining threads, etc...)
        
recipes/Python/577260_Multi_threaded_SMTP_proxy/recipe-577260.py