Skip to content

Commit

Permalink
All - Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nlogozzo committed Dec 24, 2023
1 parent c26fd2d commit 27792a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/filesystem/filesystemwatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ namespace Nickvision::Aura::Filesystem
ssize_t length{ read(m_notify, &buf[0], buf.size()) };
if (length < 0)
{
return;
continue;
}
struct inotify_event* event{ nullptr };
for (ssize_t i = 0; i < length; i += sizeof(struct inotify_event) + event->len)
Expand Down
4 changes: 4 additions & 0 deletions src/update/updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ namespace Nickvision::Aura::Update
for (const Json::Value& release : root)
{
std::string version{ release.get("tag_name", "0.0.0").asString() };
if (version == "0.0.0")
{
return {};
}
if (versionType == VersionType::Stable && version.find('-') == std::string::npos)
{
m_latestStableReleaseId = release.get("id", -1).asInt();
Expand Down

0 comments on commit 27792a9

Please sign in to comment.