ciehanski / onionbox

Send and receive files securely through Tor.
GNU Affero General Public License v3.0
41 stars 3 forks source link

wg.Wait() causes upload() to hang #5

Closed ciehanski closed 5 years ago

ciehanski commented 5 years ago

https://github.com/ciehanski/onionbox/blob/23f0ae8ad4451229de1f77b926202623758c4098/onionbox.go#L197

Commenting out this line allows the program to run, but I worry the zip file may be presented before completion of the write, causing the zip (or the files in the zip) to be corrupt.

I'm not sure why the wait group hangs indefinitely since I mark it done here: https://github.com/ciehanski/onionbox/blob/23f0ae8ad4451229de1f77b926202623758c4098/onionbox.go#L481

ciehanski commented 5 years ago

Will be resolved as of https://github.com/ciehanski/onionbox/pull/6/commits/fd40249519f7d72198c2de068a18f17759835440