1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 02:54:31 +03:00

GH-228 Refactor slightly

This commit is contained in:
Tae Won Ha 2016-08-12 15:16:43 +02:00
parent 45badf6099
commit 2055fcb104
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -191,12 +191,7 @@ static CFDataRef local_server_callback(CFMessagePortRef local, SInt32 msgid, CFD
}
CFDataRef responseData = NULL;
CFStringRef replyMode = NULL;
// We only expect reply from NeoVimAgentMsgIdDirtyDocs
if (expectsReply) {
replyMode = kCFRunLoopDefaultMode;
}
CFStringRef replyMode = expectsReply ? kCFRunLoopDefaultMode : NULL;
SInt32 responseCode = CFMessagePortSendRequest(
_remoteServerPort, msgid, (__bridge CFDataRef) data, qTimeout, qTimeout, replyMode, &responseData