mirror of https://github.com/schoebel/mars
stop all work when /mars/ is exhausted
This commit is contained in:
parent
4016261bae
commit
358d968260
|
@ -451,6 +451,9 @@ bool _check_switch(struct mars_global *global, const char *path)
|
|||
int res = false;
|
||||
struct mars_dent *allow_dent;
|
||||
|
||||
if (global->exhausted)
|
||||
goto done;
|
||||
|
||||
allow_dent = mars_find_dent(global, path);
|
||||
if (!allow_dent || !allow_dent->new_link)
|
||||
goto done;
|
||||
|
|
Loading…
Reference in New Issue