diff options
-rw-r--r-- | src/transport/gnunet-helper-transport-bluetooth.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/transport/gnunet-helper-transport-bluetooth.c b/src/transport/gnunet-helper-transport-bluetooth.c index bdf397401..f07fd23aa 100644 --- a/src/transport/gnunet-helper-transport-bluetooth.c +++ b/src/transport/gnunet-helper-transport-bluetooth.c | |||
@@ -1092,6 +1092,11 @@ open_device (struct HardwareInfos *dev) | |||
1092 | if (GNUNET_NETWORK_socket_bind (dev->handle, (const SOCKADDR*)&addr, sizeof (SOCKADDR_BTH), 0) != GNUNET_OK) | 1092 | if (GNUNET_NETWORK_socket_bind (dev->handle, (const SOCKADDR*)&addr, sizeof (SOCKADDR_BTH), 0) != GNUNET_OK) |
1093 | { | 1093 | { |
1094 | fprintf (stderr, "Failed to bind the socket: "); | 1094 | fprintf (stderr, "Failed to bind the socket: "); |
1095 | if (GetLastError() == WSAENETDOWN) | ||
1096 | { | ||
1097 | fprintf (stderr, "Please make sure that your Bluetooth device is ON!\n"); | ||
1098 | ExitProcess (2); | ||
1099 | } | ||
1095 | print_last_error(); | 1100 | print_last_error(); |
1096 | return -1; | 1101 | return -1; |
1097 | } | 1102 | } |