git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6a8ba26
)
Revert "TODO s4:libcli/raw: don't schedule idle handlers on a dead connection"
author
Stefan Metzmacher
<metze@samba.org>
Thu, 28 Feb 2013 09:50:11 +0000
(10:50 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 4 Oct 2016 12:51:58 +0000
(14:51 +0200)
This reverts commit
625f14f4b6aad030aa88fb5df02d50c642854b6b
.
source4/libcli/raw/clitransport.c
patch
|
blob
|
history
diff --git
a/source4/libcli/raw/clitransport.c
b/source4/libcli/raw/clitransport.c
index f07b092eb8d42f2d0a111c7ffbcf20ac0999f3bf..d0dd1f9dee6a987f9d545e7b7daf95f9902db948 100644
(file)
--- a/
source4/libcli/raw/clitransport.c
+++ b/
source4/libcli/raw/clitransport.c
@@
-137,14
+137,6
@@
static void idle_handler(struct tevent_context *ev,
transport->idle.func(transport, transport->idle.private_data);
transport->idle.func(transport, transport->idle.private_data);
- if (transport->idle.func == NULL) {
- return;
- }
-
- if (!smbXcli_conn_is_connected(transport->conn)) {
- return;
- }
-
next = timeval_current_ofs_usec(transport->idle.period);
transport->idle.te = tevent_add_timer(transport->ev,
next = timeval_current_ofs_usec(transport->idle.period);
transport->idle.te = tevent_add_timer(transport->ev,
@@
-164,15
+156,6
@@
_PUBLIC_ void smbcli_transport_idle_handler(struct smbcli_transport *transport,
void *private_data)
{
TALLOC_FREE(transport->idle.te);
void *private_data)
{
TALLOC_FREE(transport->idle.te);
- ZERO_STRUCT(transport->idle);
-
- if (idle_func == NULL) {
- return;
- }
-
- if (!smbXcli_conn_is_connected(transport->conn)) {
- return;
- }
transport->idle.func = idle_func;
transport->idle.private_data = private_data;
transport->idle.func = idle_func;
transport->idle.private_data = private_data;