projects
/
ChatPrototype.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
63fe80b
)
[IOMultiplexer] fixed possible endless loop when appending a timer to the descriptor...
author
pk910
<philipp@zoelle1.de>
Wed, 22 Aug 2012 00:43:50 +0000
(
02:43
+0200)
committer
pk910
<philipp@zoelle1.de>
Wed, 22 Aug 2012 00:43:50 +0000
(
02:43
+0200)
src/IOHandler.c
patch
|
blob
|
history
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;