Fix: change check for domain order and existance of domain message header

This commit is contained in:
mailwl
2018-02-20 21:59:58 +03:00
parent 1572c45aa0
commit 827152d1fd
3 changed files with 4 additions and 3 deletions

View File

@ -96,7 +96,7 @@ ResultCode ServerSession::HandleSyncRequest(SharedPtr<Thread> thread) {
ResultCode result = RESULT_SUCCESS;
// If the session has been converted to a domain, handle the domain request
if (context.GetDomainMessageHeader() && IsDomain()) {
if (IsDomain() && context.GetDomainMessageHeader()) {
result = HandleDomainSyncRequest(context);
// If there is no domain header, the regular session handler is used
} else if (hle_handler != nullptr) {