mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-01 01:32:04 +03:00
GH-228 Refactor slightly
This commit is contained in:
parent
45badf6099
commit
2055fcb104
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user