diff --git a/treeshr/RemoteAccess.c b/treeshr/RemoteAccess.c index 844535fe60..ea3f156a2f 100644 --- a/treeshr/RemoteAccess.c +++ b/treeshr/RemoteAccess.c @@ -945,7 +945,7 @@ int TreeGetCurrentShotIdRemote(const char *treearg, char *path, int *shot) { int status = TreeFAILURE; int conid = remote_connect(path); - if (conid > 0) + if (conid >= 0) { struct descrip ans = {0}; struct descrip tree = STR2DESCRIP(treearg);