Commit f1d027e6 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Exit without failure if instance found

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent d0c19151
......@@ -194,9 +194,13 @@ main(int argc, char* argv[])
}
const int ret = run_synctex_forward(synctex_fwd, argv[1], synctex_pid);
if (ret != 0) {
/* Error or instance found */
return ret;
if (ret > 0) {
/* Instance found. */
return 0;
}
else if (ret < 0) {
/* Error occurred. */
return -1;
}
girara_debug("No instance found. Starting new one.");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment