Removed while(1) loop in dcc_read function

This commit is contained in:
Spencer Berger 2018-03-02 23:29:36 -08:00
parent 8aa3b03261
commit ef909a3cc5

View File

@ -713,8 +713,6 @@ dcc_read (GIOChannel *source, GIOCondition condition, struct DCC *dcc)
dcc_close (dcc, STAT_FAILED, FALSE); dcc_close (dcc, STAT_FAILED, FALSE);
return TRUE; return TRUE;
} }
while (1)
{
if (dcc->throttled) if (dcc->throttled)
{ {
if (need_ack) if (need_ack)
@ -775,7 +773,6 @@ dcc_read (GIOChannel *source, GIOCondition condition, struct DCC *dcc)
dcc->file, dcc->destfile, dcc->nick, buf, 0); dcc->file, dcc->destfile, dcc->nick, buf, 0);
return TRUE; return TRUE;
} }
}
} }
static void static void