Skip to content

Commit f9e7086

Browse files
committed
added socket close() to make sure that backend cleans up properly. needed for pyfantom.
1 parent 82216e9 commit f9e7086

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/nxt_test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ try:
2424
print 'Firmware version %s.%s' % fw_version
2525
millivolts = b.get_battery_level()
2626
print 'Battery level %s mV' % millivolts
27+
b.sock.close()
2728
except:
2829
print "Error while running test:"
2930
traceback.print_tb(sys.exc_info()[2])

0 commit comments

Comments
 (0)