Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
cb382b1e
Commit
cb382b1e
authored
4 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/PollGroupWinSelect: add missing return value
Fixes regression from commit
1473d847
parent
871bf3b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
PollGroupWinSelect.cxx
src/event/PollGroupWinSelect.cxx
+2
-2
No files found.
src/event/PollGroupWinSelect.cxx
View file @
cb382b1e
...
...
@@ -121,9 +121,10 @@ PollGroupWinSelect::ReadEvents(int timeout_ms) noexcept
bool
use_sleep
=
event_set
[
EVENT_READ
].
IsEmpty
()
&&
event_set
[
EVENT_WRITE
].
IsEmpty
();
PollResultGeneric
result
;
if
(
use_sleep
)
{
Sleep
(
timeout_ms
<
0
?
INFINITE
:
(
DWORD
)
timeout_ms
);
return
;
return
result
;
}
SocketSet
read_set
(
event_set
[
EVENT_READ
]);
...
...
@@ -142,7 +143,6 @@ PollGroupWinSelect::ReadEvents(int timeout_ms) noexcept
except_set
.
GetPtr
(),
timeout_ms
<
0
?
nullptr
:
&
tv
);
PollResultGeneric
result
;
if
(
ret
==
0
||
ret
==
SOCKET_ERROR
)
return
result
;
...
...
This diff is collapsed.
Click to expand it.
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