mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-09 13:52:02 -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)
|
||||
}
|
||||
|
||||
var progressChan = make(chan int)
|
||||
var progressChan chan int
|
||||
|
||||
func DecryptContents(path string, progress *ProgressWindow, deleteEncryptedContents bool) error {
|
||||
errorChan := make(chan error)
|
||||
progressChan = make(chan int)
|
||||
defer close(errorChan)
|
||||
|
||||
go runDecryption(path, errorChan, deleteEncryptedContents)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue