mirror of https://github.com/zlatinb/muwire
fix creation of event
parent
7618e2d0fb
commit
88eda40630
|
@ -63,11 +63,11 @@ public class UploadManager {
|
||||||
|
|
||||||
Request request = Request.parse(new InfoHash(infoHashRoot), e.getInputStream())
|
Request request = Request.parse(new InfoHash(infoHashRoot), e.getInputStream())
|
||||||
Uploader uploader = new Uploader(sharedFiles.iterator().next().file, request, e)
|
Uploader uploader = new Uploader(sharedFiles.iterator().next().file, request, e)
|
||||||
eventBus.publish(new UploadEvent(uploader))
|
eventBus.publish(uploader : new UploadEvent(uploader))
|
||||||
try {
|
try {
|
||||||
uploader.respond()
|
uploader.respond()
|
||||||
} finally {
|
} finally {
|
||||||
eventBus.publish(new UploadFinishedEvent(uploader))
|
eventBus.publish(uploader : new UploadFinishedEvent(uploader))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue