File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- import { LogService , MatrixClient , MatrixEvent } from "matrix-bot-sdk" ;
17
+ import { LogService , MatrixClient , MatrixEvent } from "matrix-bot-sdk" ;
18
18
import * as irc from "irc-upd" ;
19
19
import { Auditorium } from "./models/Auditorium" ;
20
20
import { InterestRoom } from "./models/InterestRoom" ;
@@ -93,9 +93,13 @@ export class IRCBridge {
93
93
} else {
94
94
this . botRoomId = data . roomId ;
95
95
}
96
-
97
- // This should timeout if the connection is broken
98
- await this . executeCommand ( "bridgeversion" ) ;
96
+
97
+ try {
98
+ // This should timeout if the connection is broken
99
+ await this . executeCommand ( "bridgeversion" ) ;
100
+ } catch ( ex ) {
101
+ LogService . warn ( `IRCBridge` , "Failed to get IRC bridge version, it may be unreachable." ) ;
102
+ }
99
103
100
104
this . ircClient = new irc . Client ( this . config . serverName , this . config . botNick , {
101
105
port : this . config . port ,
You can’t perform that action at this time.
0 commit comments