Diff between aef1dd1ba54904e4439c96021236b5e65429e2e2 and c139d529adc4e38d99afc352534ad7f199511027

Changed Files

File Additions Deletions Status
emulator/main.c +2 -7 modified

Full Patch

diff --git a/emulator/main.c b/emulator/main.c
index 125460d..7edc57c 100644
--- a/emulator/main.c
+++ b/emulator/main.c
@@ -57,17 +57,12 @@ int main(int argc, char *argv[])
 	mainloop_set_signal(&mask, signal_callback, NULL, NULL);
 
 	vhci = vhci_open(VHCI_TYPE_BREDR, 0x23);
-	if (!vhci) {
+	if (!vhci)
 		fprintf(stderr, "Failed to open Virtual HCI device\n");
-		return 1;
-	}
 
 	server = server_open_unix("/tmp/bt-server-bredr", 0x42);
-	if (!server) {
+	if (!server)
 		fprintf(stderr, "Failed to open server channel\n");
-		vhci_close(vhci);
-		return 1;
-	}
 
 	return mainloop_run();
 }