samm-git/jvpn — pull request #16 by alexanderad (2014-04-14 12:29:34+00:00)
Title: Do not remove last line with stats when connection is terminated because...

... of no response from ncsvc.

Example:
```
alex@debian:~/jvpn$ ./jvpn.pl
Enter PIN+password: *********
Transfer went ok
Got DSID
Certificate fingerprint: [****************************]
TCP Connection to ncsvc process established.
Sending handshake #1 packet... [done]
Sending handshake #2 packet... [done]
Sending configuration packet... [done]
Running user-defined script
IP: 10.12.134.203 Gateway: 10.200.200.200
DNS1: 10.12.1.61 DNS2: 10.12.1.101
Connected to ************, press CTRL+C to exit
Duration: 00:00:30 Sent: 0.00 B Received: 0.00 B <-- this line is missing
No response from ncsvc, closing connection
Logging out...
Killing ncsvc...
restoring resolv.conf
Running user-defined script
Exiting
```
BTW, for `ncui` version everything is OK with stats on connection lost, the `\r` is printed just before stats refresh, as in this PR.

P.S. thank you for a great script!