mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-13 14:44:48 -04:00
Create new channel for every decryption
This commit is contained in:
parent
8e69ec1cea
commit
49a2c9169c
1 changed files with 2 additions and 1 deletions
|
@ -23,10 +23,11 @@ func callProgressCallback(progress C.int) {
|
||||||
progressChan <- int(progress)
|
progressChan <- int(progress)
|
||||||
}
|
}
|
||||||
|
|
||||||
var progressChan = make(chan int)
|
var progressChan chan int
|
||||||
|
|
||||||
func DecryptContents(path string, progress *ProgressWindow, deleteEncryptedContents bool) error {
|
func DecryptContents(path string, progress *ProgressWindow, deleteEncryptedContents bool) error {
|
||||||
errorChan := make(chan error)
|
errorChan := make(chan error)
|
||||||
|
progressChan = make(chan int)
|
||||||
defer close(errorChan)
|
defer close(errorChan)
|
||||||
|
|
||||||
go runDecryption(path, errorChan, deleteEncryptedContents)
|
go runDecryption(path, errorChan, deleteEncryptedContents)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue