def stop_tcp_server(self):
        """
        Stops the TCP server.

        :return: Method success.
        :rtype: bool
        """

        if self.__tcp_server.online:
            if self.__tcp_server.stop():
                self.__engine.notifications_manager.notify(
                    "{0} | TCP Server has stopped!".format(self.__class__.__name__))
                return True
        else:
            self.__engine.notifications_manager.warnify(
                "{0} | TCP Server is not online!".format(self.__class__.__name__))
            return False