diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2022-11-17 16:09:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-17 16:09:56 +0000 |
commit | e7132c3f81acbc50c1923cad7eeab96d3b2e05fd (patch) | |
tree | 74ad65f3da728bbf260f041da6681060c0f8dd31 /synapse/replication | |
parent | Faster joins: do not wait for full state when creating events to send (#14403) (diff) | |
download | synapse-e7132c3f81acbc50c1923cad7eeab96d3b2e05fd.tar.xz |
Fix check to ignore blank lines in incoming TCP replication (#14449)
Diffstat (limited to 'synapse/replication')
-rw-r--r-- | synapse/replication/tcp/protocol.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/tcp/protocol.py b/synapse/replication/tcp/protocol.py index 7763ffb2d0..56a5c21910 100644 --- a/synapse/replication/tcp/protocol.py +++ b/synapse/replication/tcp/protocol.py @@ -245,7 +245,7 @@ class BaseReplicationStreamProtocol(LineOnlyReceiver): self._parse_and_dispatch_line(line) def _parse_and_dispatch_line(self, line: bytes) -> None: - if line.strip() == "": + if line.strip() == b"": # Ignore blank lines return |