diff options
author | Antony Woods <acron1@gmail.com> | 2014-09-13 19:15:37 +0100 |
---|---|---|
committer | Antony Woods <acron1@gmail.com> | 2014-09-13 19:15:37 +0100 |
commit | 8299451271555661049a30b1aa1f98da453d51ba (patch) | |
tree | b05398dc8ce0cff89f2ab944aa697956664b0eab /include | |
parent | 7367f64ba8d6f5e5cec3e94f1cf7adbee4d9b9dc (diff) | |
download | crow-8299451271555661049a30b1aa1f98da453d51ba.tar.gz crow-8299451271555661049a30b1aa1f98da453d51ba.zip |
Moved the 'completed = true' line to before the completion callbacks
Diffstat (limited to 'include')
-rw-r--r-- | include/http_response.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/http_response.h b/include/http_response.h index 69c6d72..7288cc3 100644 --- a/include/http_response.h +++ b/include/http_response.h @@ -84,11 +84,12 @@ namespace crow { if (!completed_) { + completed_ = true; + if (complete_request_handler_) { complete_request_handler_(); } - completed_ = true; } } |