mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-15 17:10:46 +00:00
move check ldirty before updating public packet.
patch bump
This commit is contained in:
parent
444d26a869
commit
079bf177a1
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "vban-cmd"
|
name = "vban-cmd"
|
||||||
version = "1.1.1"
|
version = "1.1.2"
|
||||||
description = "Python interface for the VBAN RT Packet Service (Sendtext)"
|
description = "Python interface for the VBAN RT Packet Service (Sendtext)"
|
||||||
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
@ -200,14 +200,14 @@ class VbanCmd(metaclass=ABCMeta):
|
|||||||
self._strip_buf, self._bus_buf = self._get_levels(self._pp)
|
self._strip_buf, self._bus_buf = self._get_levels(self._pp)
|
||||||
self._pdirty = self._pp.pdirty(self.public_packet)
|
self._pdirty = self._pp.pdirty(self.public_packet)
|
||||||
|
|
||||||
if self.public_packet != self._pp:
|
|
||||||
self._public_packet = self._pp
|
|
||||||
if self.pdirty:
|
|
||||||
self.subject.notify("pdirty")
|
|
||||||
if self.ldirty:
|
if self.ldirty:
|
||||||
self.cache["strip_level"] = tuple(self._strip_buf)
|
self.cache["strip_level"] = tuple(self._strip_buf)
|
||||||
self.cache["bus_level"] = tuple(self._bus_buf)
|
self.cache["bus_level"] = tuple(self._bus_buf)
|
||||||
self.subject.notify("ldirty")
|
self.subject.notify("ldirty")
|
||||||
|
if self.public_packet != self._pp:
|
||||||
|
self._public_packet = self._pp
|
||||||
|
if self.pdirty:
|
||||||
|
self.subject.notify("pdirty")
|
||||||
elapsed = time.time() - start
|
elapsed = time.time() - start
|
||||||
if self.ratelimit - elapsed > 0:
|
if self.ratelimit - elapsed > 0:
|
||||||
time.sleep(self.ratelimit - elapsed)
|
time.sleep(self.ratelimit - elapsed)
|
||||||
|
Loading…
Reference in New Issue
Block a user