WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 480a218

Browse files
committed
Only drop old messages to be more lenient for bugs that over-increment v (at least once vs at most once processing schemes)
1 parent 1bb1662 commit 480a218

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "simplyprint-ws-client"
3-
version = "1.0.1rc38"
3+
version = "1.0.1rc39"
44
description = "SimplyPrint Websocket Client"
55
authors = [{ name = "SimplyPrint", email = "[email protected]" }]
66
requires-python = ">=3.9"

simplyprint_ws_client/core/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def consume(self):
370370

371371
@configure(ConnectionIncomingEvent)
372372
async def _on_connection_incoming(self, msg: ServerMsgKind, v: int):
373-
if self.v != v:
373+
if self.v < v:
374374
self.logger.warning("Dropped incoming message %s with v: %d.", msg, v)
375375
return
376376

0 commit comments

Comments
 (0)