mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-24 03:25:03 +03:00
GH-341 Set timeout for the IPC to 2sec.
This commit is contained in:
parent
99d2c8c5f9
commit
cf62d4b25f
@ -15,7 +15,7 @@
|
||||
//#define DEBUG_NEOVIM_SERVER_STANDALONE
|
||||
|
||||
|
||||
static const double qTimeout = 10.0;
|
||||
static const double qTimeout = 2;
|
||||
|
||||
#define data_to_array(type) \
|
||||
static type *data_to_ ## type ## _array(NSData *data, NSUInteger count) { \
|
||||
@ -148,7 +148,7 @@ static CFDataRef local_server_callback(CFMessagePortRef local, SInt32 msgid, CFD
|
||||
#ifdef DEBUG_NEOVIM_SERVER_STANDALONE
|
||||
return;
|
||||
#endif
|
||||
|
||||
|
||||
if (_remoteServerPort == NULL) {
|
||||
WLOG("Remote server is null: The msg (%lu:%s) could not be sent.", (unsigned long) msgid, data.cdesc);
|
||||
return;
|
||||
|
@ -11,7 +11,7 @@
|
||||
#import "NeoVimWindow.h"
|
||||
|
||||
|
||||
static const double qTimeout = 10;
|
||||
static const double qTimeout = 2;
|
||||
|
||||
#define data_to_array(type) \
|
||||
static type *data_to_ ## type ## _array(NSData *data, NSUInteger count) { \
|
||||
@ -232,7 +232,7 @@ static CFDataRef local_server_callback(CFMessagePortRef local, SInt32 msgid, CFD
|
||||
log4Warn("The response for the msg %lu was nil.", NeoVimAgentMsgIdGetDirtyDocs);
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
bool *values = data_to_bool_array(response, 1);
|
||||
return values[0];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user