Skip to content

Commit

Permalink
Adding processPostedMessages() against locking up during resource sea…
Browse files Browse the repository at this point in the history
…rch.
  • Loading branch information
treewyrm committed Jul 9, 2022
1 parent f5f5e3c commit 406f915
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions macroscripts/MAXLancer-FindResources.mcr
Expand Up @@ -102,7 +102,8 @@ macroscript FindResources category:"MAXLancer" tooltip:"Find Resources" buttonte
reader.CloseFolder()
)

reader.Close()
reader.Close()
windows.processPostedMessages()
) catch (
WriteLine ("ERROR (" + filename + "): " + getCurrentException())
reader.Close()
Expand Down Expand Up @@ -180,7 +181,8 @@ macroscript FindResources category:"MAXLancer" tooltip:"Find Resources" buttonte
if usedByMesh then WriteLine (subject + " is used by mesh in: " + filename)
)

reader.Close()
reader.Close()
windows.processPostedMessages()
) catch (
WriteLine ("ERROR (" + filename + "): " + getCurrentException())
reader.Close()
Expand Down

0 comments on commit 406f915

Please sign in to comment.