X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=source4%2Flibcli%2Fraw%2Fclitransport.c;h=d0dd1f9dee6a987f9d545e7b7daf95f9902db948;hb=c80ca7967c2d006340530818465a793ed5deb350;hp=f07b092eb8d42f2d0a111c7ffbcf20ac0999f3bf;hpb=6a8ba260dd9a7233b9983e2067da58f96fd3d408;p=metze%2Fsamba%2Fwip.git diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c index f07b092eb8d4..d0dd1f9dee6a 100644 --- 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); - 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, @@ -164,15 +156,6 @@ _PUBLIC_ void smbcli_transport_idle_handler(struct smbcli_transport *transport, 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;