File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { Auditorium } from "./models/Auditorium";
20
20
import { InterestRoom } from "./models/InterestRoom" ;
21
21
import config from "./config" ;
22
22
import { makeLocalpart } from "./utils/aliases" ;
23
+ import { LogService } from 'matrix-bot-sdk' ;
23
24
24
25
export interface IRCBridgeOpts {
25
26
botNick : string ;
@@ -87,9 +88,13 @@ export class IRCBridge {
87
88
} else {
88
89
this . botRoomId = data . roomId ;
89
90
}
90
-
91
- // This should timeout if the connection is broken
92
- await this . executeCommand ( "bridgeversion" ) ;
91
+
92
+ try {
93
+ // This should timeout if the connection is broken
94
+ await this . executeCommand ( "bridgeversion" ) ;
95
+ } catch ( ex ) {
96
+ LogService . warn ( `IRCBridge` , "Failed to get IRC bridge version, it may be unreachable." ) ;
97
+ }
93
98
94
99
this . ircClient = new irc . Client ( this . config . serverName , this . config . botNick , {
95
100
port : this . config . port ,
You can’t perform that action at this time.
0 commit comments