Skip to content

Commit

Permalink
Removes error
Browse files Browse the repository at this point in the history
  • Loading branch information
128keaton committed Aug 23, 2022
1 parent 5ee5c51 commit bafb7fd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/tibbo-discover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,7 @@ export class TibboDiscover {

if (!!networkInterface) {
TibboHelpers.debugPrint('info', 'Using interface "', networkInterface, '" for broadcasting');
try {
socket.setMulticastInterface(networkInterface);
} catch (error) {
throw new Error('Invalid interface');
}
socket.setMulticastInterface(networkInterface);
}

TibboHelpers.debugPrint('info', 'Sending broadcast message', message, 'to', `${TIBBO_BROADCAST_ADDR}:${TIBBO_BROADCAST_PORT}`);
Expand Down

0 comments on commit bafb7fd

Please sign in to comment.