Skip to content

Commit 0838f0f

Browse files
committed
fix: don't stuck on "Restarting application" when some error occurs while stopping the application
Currently when the application is stopped, NativeScript CLI hangs up on "Restarting application". This happens as we're no able to start `gdb server` due to some error. (for example, not mounted developer disk image on device). In this situation, `ios-device-lib` doesn't print any message back to the CLI and this way the entire `tns run` command is blocked. Printing error in this situation will ensure that NativeScript CLI will continue the command execution. Rel to NativeScript/nativescript-cli#5020
1 parent 0cbc1ad commit 0838f0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

IOSDeviceLib/IOSDeviceLib.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,7 @@ void stop_app(std::string device_identifier, std::string application_identifier,
12571257
HANDLE gdb = start_debug_server(device_identifier, ddi, method_id);
12581258
if (!gdb)
12591259
{
1260+
print_error("Unable to start gdb server", device_identifier, method_id, kUnexpectedError);
12601261
return;
12611262
}
12621263

0 commit comments

Comments
 (0)