From a21e95e4c5b02c7a7cccca8443d63ffba9db0836 Mon Sep 17 00:00:00 2001 From: herklos Date: Mon, 18 May 2020 21:48:05 +0200 Subject: [PATCH] [Producer] Fix pausing --- CHANGELOG.md | 4 ++++ README.md | 2 +- octobot_channels/__init__.py | 2 +- octobot_channels/producer.py | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1860ee8..4b8ef5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.4.7] - 2020-05-17 +### Fixed +- [Producer] pause is running was not set + ## [1.4.6] - 2020-05-16 ### Updated - Requirements diff --git a/README.md b/README.md index 62fa197..0f61162 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# OctoBot-Channels [1.4.6](https://github.com/Drakkar-Software/OctoBot-Channels/blob/master/CHANGELOG.md) +# OctoBot-Channels [1.4.7](https://github.com/Drakkar-Software/OctoBot-Channels/blob/master/CHANGELOG.md) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/d6bc3f05475c463189dbd509cfc94afe)](https://app.codacy.com/gh/Drakkar-Software/OctoBot-Channels?utm_source=github.com&utm_medium=referral&utm_content=Drakkar-Software/OctoBot-Channels&utm_campaign=Badge_Grade_Dashboard) [![PyPI](https://img.shields.io/pypi/v/OctoBot-Channels.svg)](https://pypi.python.org/pypi/OctoBot-Channels/) [![Build Status](https://api.travis-ci.com/Drakkar-Software/OctoBot-Channels.svg?branch=master)](https://travis-ci.com/Drakkar-Software/OctoBot-Channels) diff --git a/octobot_channels/__init__.py b/octobot_channels/__init__.py index 061e120..d9e3beb 100644 --- a/octobot_channels/__init__.py +++ b/octobot_channels/__init__.py @@ -15,4 +15,4 @@ # License along with this library. PROJECT_NAME = "OctoBot-Channels" -VERSION = "1.4.6" # major.minor.revision +VERSION = "1.4.7" # major.minor.revision diff --git a/octobot_channels/producer.py b/octobot_channels/producer.py index 7a78ae3..1b714a9 100644 --- a/octobot_channels/producer.py +++ b/octobot_channels/producer.py @@ -83,6 +83,7 @@ async def pause(self) -> None: Called when the channel runs out of consumer """ self.logger.debug("Pausing...") + self.is_running = False # Triggers itself if not already paused if not self.channel.is_paused: self.channel.is_paused = True