pkviet

device

Jan 4th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. try {
  2. if (device == NULL) {
  3. reset = true;
  4. } else if (data->device == NULL) {
  5. data->device = bstrdup(device);
  6. reset = true;
  7. } else if (strcmp(bstrdup(device), data->device) != 0) {
  8. data->device = bstrdup(device);
  9. reset = true;
  10. }
  11. }
  12. catch(...) {
  13. blog(LOG_INFO, "Initializing asio device");
  14. }
Advertisement
Add Comment
Please, Sign In to add comment