Univention Bugzilla – Attachment 5162 Details for
Bug 30984
ProgressBar.auto should be able to receive a SIGTERM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use a deferred to signal auto to stop
30984.patch (text/plain), 1.21 KB, created by
Dirk Wiesenthal
on 2013-04-04 21:03:36 CEST
(
hide
)
Description:
Use a deferred to signal auto to stop
Filename:
MIME Type:
Creator:
Dirk Wiesenthal
Created:
2013-04-04 21:03:36 CEST
Size:
1.21 KB
patch
obsolete
>Index: umc/widgets/ProgressBar.js >=================================================================== >--- umc/widgets/ProgressBar.js (Revision 39866) >+++ umc/widgets/ProgressBar.js (Arbeitskopie) >@@ -114,7 +114,12 @@ > })); > }, > >- auto: function(umcpCommand, umcpOptions, callback, pollErrorMsg, stopComponent, dontHandleErrors) { >+ auto: function(umcpCommand, umcpOptions, callback, pollErrorMsg, stopComponent, dontHandleErrors, untilDeferred) { >+ if (untilDeferred && untilDeferred.isFulfilled()) { >+ // auto caught SIGTERM ! >+ this.stop(callback, stopComponent, !dontHandleErrors); >+ return; >+ } > if (pollErrorMsg === undefined) { > pollErrorMsg = _('Fetching information from the server failed!'); > } >@@ -130,7 +135,7 @@ > if (result) { > this.setInfo(result.component, result.info, result.steps, result.errors, result.critical); > if (!result.finished) { >- setTimeout(lang.hitch(this, 'auto', umcpCommand, umcpOptions, callback, pollErrorMsg, stopComponent, dontHandleErrors), 200); >+ setTimeout(lang.hitch(this, 'auto', umcpCommand, umcpOptions, callback, pollErrorMsg, stopComponent, dontHandleErrors, untilDeferred), 200); > } > } > if (!result || result.finished) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 30984
: 5162