X-Git-Url: http://git.pk910.de/?p=NextIRCd.git;a=blobdiff_plain;f=src%2FIOHandler.c;h=e4fa1dd6dd30e16c9df9e57c64926e9f7826e3e8;hp=4f057e8ef3db36cb4bd65dac770172090eba8ed6;hb=387875d6774f80fb54ea6e080177a0c3795ddf7d;hpb=63fe80b57c7ff27b24900174fe3621f458135a11 diff --git a/src/IOHandler.c b/src/IOHandler.c index 4f057e8..e4fa1dd 100644 --- a/src/IOHandler.c +++ b/src/IOHandler.c @@ -111,9 +111,9 @@ static void iohandler_append(struct IODescriptor *descriptor) { if(timeval_is_smaler(timeout, (&iofd->timeout))) { descriptor->prev = iofd->prev; descriptor->next = iofd; - iofd->prev = descriptor; if(iofd->prev) iofd->prev->next = descriptor; + iofd->prev = descriptor; if(set_priority) timer_priority = descriptor; break;