From 032a7e0c1188d3507b8d9a9571f2446a43cf775b Mon Sep 17 00:00:00 2001 From: msglm Date: Fri, 27 Oct 2023 07:08:25 -0500 Subject: apply https://github.com/42wim/matterbridge/pull/1864 --- bridge/bridge.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bridge/bridge.go') diff --git a/bridge/bridge.go b/bridge/bridge.go index ef71f97e..74afcbee 100644 --- a/bridge/bridge.go +++ b/bridge/bridge.go @@ -17,6 +17,12 @@ type Bridger interface { Disconnect() error } +// additional methods for bridges that are not started when Connect() is called, +// because we must join the channels prior to starting processing events +type BridgerWithChannelDependency interface { + Start() error +} + type Bridge struct { Bridger *sync.RWMutex -- cgit v1.2.3