Skip to content

server: avoid logging an error when deploying plugins#71

Open
brianneville wants to merge 1 commit intoopenconfig:masterfrom
brianneville:handle-move-plugin
Open

server: avoid logging an error when deploying plugins#71
brianneville wants to merge 1 commit intoopenconfig:masterfrom
brianneville:handle-move-plugin

Conversation

@brianneville
Copy link
Copy Markdown
Contributor

when a plugin is deployed, we were moving and then deleting the temporary file.
However we are unconditionally calling chunkWriter.Cleanup when exiting from handleImageTransfer, which means that for plugins we would be always logging an error.
In this change, we change the Cleanup function so that it can be called multiple times, but will only run once, and will always return the error from the first invocation.

when a plugin is deployed, we were moving and then deleting
the temporary file.
However we are unconditionally calling chunkWriter.Cleanup
when exiting from handleImageTransfer, which means that for plugins
we would be always logging an error.
In this change, we change the Cleanup function so that it can be
called multiple times, but will only run once, and will always
return the error from the first invocation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant