Skip to content

Commit

Permalink
dlman: Dont set dling to true if dl doesnt start
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram authored Feb 25, 2018
1 parent a54f567 commit 5eb0981
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DownloadManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1346,10 +1346,11 @@ class LunaDownloadablePack : public Luna<DownloadablePack>
{
if (p->downloading)
return 1;
p->downloading = true;
Download * dl = DLMAN->DownloadAndInstallPack(p);
if (dl)
if (dl) {
dl->PushSelf(L);
p->downloading = true;
}
else
lua_pushnil(L);
return 1;
Expand Down

0 comments on commit 5eb0981

Please sign in to comment.