From 157f0a28be06d866782a3c1f62f165cad1bc6da4 Mon Sep 17 00:00:00 2001 From: svost Date: Thu, 5 May 2016 11:42:40 +0300 Subject: [PATCH] Fix coverity CID 102345 --- src/irc.cpp | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/irc.cpp b/src/irc.cpp index de789bd..bc1cb31 100644 --- a/src/irc.cpp +++ b/src/irc.cpp @@ -274,8 +274,10 @@ void ThreadIRCSeed2(void* parg) { printf("IRC name already in use\n"); nNameRetry++; - Wait(10); - continue; + if (Wait(10)) + continue; + else + return; } nErrorWait = nErrorWait * 11 / 10; if (Wait(nErrorWait += 60)) -- 1.7.1