Airway - Fix handleAirway for "not isUnconscious" unit#781
Airway - Fix handleAirway for "not isUnconscious" unit#781Apricot-ale wants to merge 2 commits intoKAT-Advanced-Medical:dev-Tomcatfrom
Conversation
|
LG™ |
|
@Apricot-ale - Just wanted to see if this might still waiting merge or if there was a better fix found? We're occasionally seeing occlusions pop up from this scenario. |
I wasn't sure what this scenario is (sorry for my poor English) Yeah PR was indeed still waiting to be merge. And it's possible that the KAM REDUX fork by Cpl.Hardcore fixes it with even more revised code. I don't use REDUX, so I can't speak to details. By the way, I no longer see the bug on my server using the latest Profiling Branch. |
When merged this pull request will:
This is a rare case and it is unclear whether this is a result of processing being accelerated by the latest 2.20 update.
But handleAirway would be executed by "treatmentAdvanced_RemoveAirwayItem" after (almost same timing with) a unit had woken up from unconscious, and this sometime causing obstruction in the airway of the awake unit then unconscious by low oxygen.
In handlePunking, the "isUnconscious" check exists for the loop, but handleAirway which has no loop processing so does not have check, so depending on the timing of execution the handleAirway, variable would be set to an incorrect value, and this is avoided by a double check.
Reported Issue: https://discord.com/channels/528955370941579265/1389725505019838566
IMPORTANT
Component - Add|Fix|Improve|Change|Make|Remove {changes}.