Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
medialibrary
Commits
5cf2fc31
Commit
5cf2fc31
authored
Jun 29, 2018
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DiscovererWorker: Warn if no discoverer worker accepted an entrypoint
parent
883a53f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/discoverer/DiscovererWorker.cpp
src/discoverer/DiscovererWorker.cpp
+4
-0
No files found.
src/discoverer/DiscovererWorker.cpp
View file @
5cf2fc31
...
...
@@ -241,6 +241,7 @@ void DiscovererWorker::runUnban( const std::string& entryPoint )
void
DiscovererWorker
::
runDiscover
(
const
std
::
string
&
entryPoint
)
{
m_ml
->
getCb
()
->
onDiscoveryStarted
(
entryPoint
);
auto
discovered
=
false
;
for
(
auto
&
d
:
m_discoverers
)
{
// Assume only one discoverer can handle an entrypoint.
...
...
@@ -252,6 +253,7 @@ void DiscovererWorker::runDiscover( const std::string& entryPoint )
auto
duration
=
std
::
chrono
::
steady_clock
::
now
()
-
chrono
;
LOG_DEBUG
(
"Discovered "
,
entryPoint
,
" in "
,
std
::
chrono
::
duration_cast
<
std
::
chrono
::
microseconds
>
(
duration
).
count
(),
"µs"
);
discovered
=
true
;
break
;
}
}
...
...
@@ -263,6 +265,8 @@ void DiscovererWorker::runDiscover( const std::string& entryPoint )
if
(
m_run
==
false
)
break
;
}
if
(
discovered
==
false
)
LOG_WARN
(
"No IDiscoverer found to discover "
,
entryPoint
);
m_ml
->
getCb
()
->
onDiscoveryCompleted
(
entryPoint
);
}
...
...
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