* Refactored code to remove global static variables * Added better error checks and WINPR_ASSERT
The rdpContext gets an event which will get set if an error occoured in a channel. If a thread or a void callback has to report an error it will get signaled by this system.