Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Apr 11, 2016
1 parent b01860f commit 624d380
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ function lockedCheck(from, to, group) {
to = fis.file.wrap(to).realpath;
if (from === to) {
return true;
} else if (group[to]) {
} else if (group[to] && group[to] !== from) {
var prev = from;
var msg = [];

Expand Down Expand Up @@ -952,13 +952,13 @@ function postStandard(file) {
}
if (f && f.isFile()) {
file.addLink(f.subpath);
var locked = lockedCheck(file, info.file);
var locked = lockedCheck(file, info.file, 'embed');
if (!locked) {
lock(file, info.file);
lock(file, f, 'embed');
f.addLink(file.subpath);
f.isInline = true;
exports(f);
unlock(f);
unlock(f, 'embed');
addDeps(file, f);
copyInfo(f, file);

Expand Down

0 comments on commit 624d380

Please sign in to comment.