ref: c1cb544f9c821ad74b026845f48d2d53fa7ae6b0
parent: 76a2afc698a97a1ac16c7f0c8831e328e384bbd6
author: cancel <cancel@cancel.fm>
date: Sun Dec 9 17:27:20 EST 2018
Cleanup
--- a/tui_main.c
+++ b/tui_main.c
@@ -572,10 +572,12 @@
oosc_dev_destroy(a->oosc_dev);
a->oosc_dev = NULL;
}
- Oosc_udp_create_error err =
- oosc_dev_create_udp(&a->oosc_dev, dest_addr, dest_port);
- if (err) {
- return false;
+ if (dest_port) {
+ Oosc_udp_create_error err =
+ oosc_dev_create_udp(&a->oosc_dev, dest_addr, dest_port);
+ if (err) {
+ return false;
+ }
}
return true;
}