Skip to content

Commit

Permalink
[Producer] Fix pausing
Browse files Browse the repository at this point in the history
  • Loading branch information
Herklos committed May 18, 2020
1 parent 31aa12f commit a21e95e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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)
Expand Down
2 changes: 1 addition & 1 deletion octobot_channels/__init__.py
Expand Up @@ -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
1 change: 1 addition & 0 deletions octobot_channels/producer.py
Expand Up @@ -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
Expand Down

0 comments on commit a21e95e

Please sign in to comment.