Skip to content

Commit

Permalink
fix bug getting running vm count with destroyed bookmarked machine
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswayoub committed May 11, 2014
1 parent bb82d0e commit 40d4e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Vagrant Manager/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -959,8 +959,8 @@ - (int)getRunningVmCount {

NSMutableArray *bookmarkUuids = [[NSMutableArray alloc] init];
for(Bookmark *bookmark in bookmarks) {
[bookmarkUuids addObject:bookmark.uuid];
if(bookmark.machine && bookmark.machine.isRunning) {
[bookmarkUuids addObject:bookmark.uuid];
++runningCount;
}
}
Expand Down

0 comments on commit 40d4e64

Please sign in to comment.