Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
ab6e7774
Commit
ab6e7774
authored
Apr 13, 2014
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
io: don't close if already closing in io_close_other.
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
f7ab2c65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ccan/io/io.c
ccan/io/io.c
+5
-2
No files found.
ccan/io/io.c
View file @
ab6e7774
...
...
@@ -490,8 +490,11 @@ struct io_plan io_close_cb(struct io_conn *conn, void *arg)
void
io_close_other
(
struct
io_conn
*
conn
)
{
conn
->
plan
=
io_close_
();
backend_plan_changed
(
conn
);
/* Don't close if already closing! */
if
(
conn
->
plan
.
next
)
{
conn
->
plan
=
io_close_
();
backend_plan_changed
(
conn
);
}
}
/* Exit the loop, returning this (non-NULL) arg. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment