X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=zlint%2Fzlint.cpp;h=88aa73faa997e400b4c0c0e3f97d57d6f751cf37;hb=217e153abe5e9c5aae6ef74a839bf01d30e295d3;hp=0c596e3022619ce1b0d8b8dc3cfe7e06101f27b9;hpb=10c10dc81402e616b22c536f5b06d9471330c608;p=yazpp-moved-to-github.git diff --git a/zlint/zlint.cpp b/zlint/zlint.cpp index 0c596e3..88aa73f 100644 --- a/zlint/zlint.cpp +++ b/zlint/zlint.cpp @@ -1,5 +1,5 @@ /* This file is part of the yazpp toolkit. - * Copyright (C) 1998-2012 Index Data and Mike Taylor + * Copyright (C) 1998-2013 Index Data and Mike Taylor * See the file LICENSE for details. */ @@ -79,13 +79,12 @@ void Zlint::timeoutNotify() { if (m_cur_test->m_t->recv_fail(this, 2) != TEST_FINISHED) { - close(); client(m_host); timeout(30); return; } + close_goto_next(); } - close_goto_next(); } void Zlint::failNotify() @@ -94,13 +93,12 @@ void Zlint::failNotify() { if (m_cur_test->m_t->recv_fail(this, 1) != TEST_FINISHED) { - close(); client(m_host); timeout(30); return; } + close_goto_next(); } - close_goto_next(); } void Zlint::connectNotify() @@ -109,8 +107,8 @@ void Zlint::connectNotify() { if (m_cur_test->m_t->init(this) != TEST_FINISHED) return; + close_goto_next(); } - close_goto_next(); } void Zlint::recv_GDU(Z_GDU *gdu, int len) @@ -122,23 +120,25 @@ void Zlint::recv_GDU(Z_GDU *gdu, int len) return; if (r == TEST_REOPEN) { - close(); client(m_host); timeout(30); return; } + close_goto_next(); } - close_goto_next(); } void Zlint::close_goto_next() { - close(); if (m_cur_test) m_cur_test = m_cur_test->m_next; if (m_cur_test) + { client(m_host); - timeout(30); + timeout(30); + } + else + close(); } IPDU_Observer *Zlint::sessionNotify(