Skip to content

Commit

Permalink
Merge pull request #15 from SiriDB/development
Browse files Browse the repository at this point in the history
bugfix siridb conn update
  • Loading branch information
timoj authored Mar 19, 2021
2 parents f12afd0 + 23593a5 commit f36e7df
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased] - yyyy-mm-dd


## [0.1.0-beta2.1.1] - 2021-03-19

### Fixed

- Fixed siridb connection status update for subscribers socket.io before socket.io is setup

## [0.1.0-beta2.1] - 2021-03-17

Migration: series config's are changed completely. Removing series.json from the data folder is necessary. You will need to re-add the series after this.
Expand Down
11 changes: 6 additions & 5 deletions lib/serverstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ async def refresh_siridb_status(cls):

if status != cls.siridb_conn_status:
cls.siridb_conn_status = status
await cls.sio.emit('update', {
'resource': 'siridb_status',
'updateType': SUBSCRIPTION_CHANGE_TYPE_INITIAL,
'resourceData': cls.siridb_conn_status
}, room='siridb_status_updates')
if cls.sio is not None:
await cls.sio.emit('update', {
'resource': 'siridb_status',
'updateType': SUBSCRIPTION_CHANGE_TYPE_INITIAL,
'resourceData': cls.siridb_conn_status
}, room='siridb_status_updates')

@classmethod
def stop(cls):
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '0.1.0-beta2.1'
VERSION = '0.1.0-beta2.1.1'

0 comments on commit f36e7df

Please sign in to comment.