--- smsdaemon/plugins/TogPlugin.cpp 2008/06/11 09:13:31 48 +++ smsdaemon/plugins/TogPlugin.cpp 2008/06/11 10:21:47 49 @@ -49,7 +49,16 @@ return; } - vector infos = GetTrainInfo( code , "" ); + vector infos; + try + { + infos = GetTrainInfo( code , "" ); + } + catch(...) + { + modem.SendSms(sms.sender, "Connection timeout"); + return; + } ostringstream os; os << stationName << "\n";