Add error handling.
This commit is contained in:
parent
da244683cf
commit
47c86542bc
@ -2,6 +2,15 @@
|
||||
Version 1.6.16
|
||||
*******************************************************************************
|
||||
|
||||
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||
|
||||
Submitted: Yoichi NAKAYAMA ( yoichi ) - 2012-03-03 20:35:08 PST
|
||||
|
||||
SF Bug Tracker id 3496702 - TvDeviceStop is called even if Start failed
|
||||
|
||||
In sample tvdevice, error of device_main() is not handled, and
|
||||
TvDeviceStop() cause crash.
|
||||
|
||||
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||
|
||||
SF Bug Tracker id 3496942 - Memory leak in config_description_doc
|
||||
|
@ -46,7 +46,11 @@ int main(int argc, char *argv[])
|
||||
#endif
|
||||
int code;
|
||||
|
||||
device_main(argc, argv);
|
||||
rc = device_main(argc, argv);
|
||||
if (rc != UPNP_E_SUCCESS) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* start a command loop thread */
|
||||
code = ithread_create(&cmdloop_thread, NULL, TvDeviceCommandLoop, NULL);
|
||||
#ifdef WIN32
|
||||
|
Loading…
Reference in New Issue
Block a user