diff --git a/lib/zxystream.js b/lib/zxystream.js index 011ef14..4d1d44f 100644 --- a/lib/zxystream.js +++ b/lib/zxystream.js @@ -33,7 +33,7 @@ ZXYStream.prototype._read = function() { if (!stream.table) { return this.source._db.get("select count(1) as count from sqlite_master where type = 'index' and tbl_name = 'map';", function(err, row) { if (err) return stream.emit('error', err); - stream.table = row.count === 1 ? 'map' : 'tiles'; + stream.table = row.count >= 1 ? 'map' : 'tiles'; return stream._read(); }); }