forked from github/server
delete wisps, or any other border that can be read but not written
This commit is contained in:
parent
a45eb53191
commit
1b038a7eaf
|
@ -674,7 +674,7 @@ int read_borders(struct storage *store)
|
|||
if (result < 0)
|
||||
return result;
|
||||
}
|
||||
if (!type->name || !to || !from) {
|
||||
if ((type->read && !type->write) || !to || !from) {
|
||||
log_warning("erase invalid border '%s' between '%s' and '%s'\n", type->__name, regionname(from, 0), regionname(to, 0));
|
||||
erase_border(b);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue