projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[IOMultiplexer] fixed possible endless loop when appending a timer to the descriptor...
[NeonServV5.git]
/
src
/
IOHandler.c
diff --git
a/src/IOHandler.c
b/src/IOHandler.c
index 4f057e8ef3db36cb4bd65dac770172090eba8ed6..e4fa1dd6dd30e16c9df9e57c64926e9f7826e3e8 100644
(file)
--- 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;
if(timeval_is_smaler(timeout, (&iofd->timeout))) {
descriptor->prev = iofd->prev;
descriptor->next = iofd;
- iofd->prev = descriptor;
if(iofd->prev)
iofd->prev->next = descriptor;
if(iofd->prev)
iofd->prev->next = descriptor;
+ iofd->prev = descriptor;
if(set_priority)
timer_priority = descriptor;
break;
if(set_priority)
timer_priority = descriptor;
break;