From 2580d4b911860913d1c9fb093dc35f6ea61958e4 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 2 Apr 2019 20:42:59 +0200 Subject: [PATCH] IRCClient: Crash if server name resolution fails. This is just so that I can catch it immediately. It obviously needs a bit of work to feel right. --- Applications/IRCClient/IRCAppWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Applications/IRCClient/IRCAppWindow.cpp b/Applications/IRCClient/IRCAppWindow.cpp index 4889168078..c37a5527c5 100644 --- a/Applications/IRCClient/IRCAppWindow.cpp +++ b/Applications/IRCClient/IRCAppWindow.cpp @@ -59,7 +59,8 @@ void IRCAppWindow::setup_client() m_client.set_server(input_box.text_value(), 6667); update_title(); - m_client.connect(); + bool success = m_client.connect(); + ASSERT(success); } void IRCAppWindow::setup_actions()