Revision cb71ca5e
src/net_helper-ml.c | ||
---|---|---|
43 | 43 |
|
44 | 44 |
#define FDSSIZE 16 |
45 | 45 |
|
46 |
static bool connect_on_know = false; //whether to try to connect as soon as we get to know a nodeID |
|
47 |
|
|
46 | 48 |
static int sIdx = 0; |
47 | 49 |
static int rIdxML = 0; //reveive from ML to this buffer position |
48 | 50 |
static int rIdxUp = 0; //hand up to layer above at this buffer position |
... | ... | |
109 | 111 |
|
110 | 112 |
res->refcnt = 1; |
111 | 113 |
|
112 |
res->connID = mlOpenConnection(peer, &connReady_cb, NULL, params); |
|
114 |
if (connect_on_know) { |
|
115 |
res->connID = mlOpenConnection(peer, &connReady_cb, NULL, params); |
|
116 |
} |
|
113 | 117 |
|
114 | 118 |
return res; |
115 | 119 |
} |
Also available in: Unified diff