mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 04:50:30 +01:00
dispatcher: add assertion and code comment to complete_script()
This commit is contained in:
parent
2b54bd6a53
commit
466a081c0f
1 changed files with 11 additions and 0 deletions
|
|
@ -359,6 +359,17 @@ complete_script (ScriptInfo *script)
|
|||
complete_request (handler->current_request);
|
||||
} else
|
||||
return;
|
||||
} else {
|
||||
/* if the script is a "wait" script, we already tried above to
|
||||
* dispatch the next script. As we didn't do that, it means we
|
||||
* just completed the last script of @request and we can continue
|
||||
* with the next request...
|
||||
*
|
||||
* Also, it cannot be that there is another request currently being
|
||||
* processed because only requests with "wait" scripts can become
|
||||
* @current_request. As there can only be one "wait" script running
|
||||
* at any time, it means complete_request() above completed @request. */
|
||||
nm_assert (!handler->current_request);
|
||||
}
|
||||
|
||||
while (next_request (handler, NULL)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue