Skip to content

Commit df56365

Browse files
committed
ControlPoint: Subscription mgr: warnings
1 parent 99c4719 commit df56365

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/dlna/clients/DLNAControlPoint.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,20 @@ class DLNAControlPoint : public IControlPoint {
200200
loop();
201201
}
202202

203-
// instantiate subscription manager
203+
// setup subscription manager
204204
if (local_url && p_http_server) {
205205
subscription_mgr.setup(http, udp, local_url, getDevice());
206+
} else {
207+
if (!local_url && !p_http_server) {
208+
DlnaLogger.log(DlnaLogLevel::Info,
209+
"No local URL and no HttpServer for subscriptions");
210+
} else if (!local_url) {
211+
DlnaLogger.log(DlnaLogLevel::Warning,
212+
"No local URL for subscriptions");
213+
} else {
214+
DlnaLogger.log(DlnaLogLevel::Warning,
215+
"No HttpServer for subscriptions");
216+
}
206217
}
207218

208219
// If we exited early because a device was found, deactivate the MSearch

0 commit comments

Comments
 (0)