diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -126,7 +126,7 @@ class NoisePeer extends stream.Duplex {
   }
 
   _writev (chunks, cb) {
-    if (this._handshake.finished === false) {
+    if (this._transport == null) {
       // buffer {data, cb} and wait for handshake to finish succesful
       this._writePending = { chunks, cb }
       return
Check if transport has been set instead

This is the real indicator that data should no longer be buffered