diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-12-22 01:56:13 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-22 01:56:13 +1100 |
commit | ea6abf6724f4572a709047034fe2a672641068b9 (patch) | |
tree | a38de646bb14b8b078523df8361a5614f81bb193 /tests/server.py | |
parent | Make the dependencies more like a standard Python project and hook up the opt... (diff) | |
download | synapse-ea6abf6724f4572a709047034fe2a672641068b9.tar.xz |
Fix IP URL previews on Python 3 (#4215)
Diffstat (limited to 'tests/server.py')
-rw-r--r-- | tests/server.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/server.py b/tests/server.py index ceec2f2d4e..db43fa0db8 100644 --- a/tests/server.py +++ b/tests/server.py @@ -383,8 +383,16 @@ class FakeTransport(object): self.disconnecting = True def pauseProducing(self): + if not self.producer: + return + self.producer.pauseProducing() + def resumeProducing(self): + if not self.producer: + return + self.producer.resumeProducing() + def unregisterProducer(self): if not self.producer: return |