diff 235ef367d793db705b1b4ef20913c697eccd13a6 uncommitted --- a/sys/src/9/port/devtls.c +++ b/sys/src/9/port/devtls.c @@ -1258,6 +1258,8 @@ if(tr->debug)pprint("send %zd\n", BLEN(b)); if(tr->debug)pdump(BLEN(b), b->rp, "sent:"); + if(type == RApplication) + checkstate(tr, 0, SOpen); ok = SHandshake|SOpen|SRClose; if(type == RAlert) @@ -1375,7 +1377,6 @@ tr->handout += n; break; case Qdata: - checkstate(tr, 0, SOpen); tlsrecwrite(tr, RApplication, b); tr->dataout += n; break;