mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-11-03 11:47:49 +00:00
nDPIsrvd.py: Throw SocketTimeout Exception to catch both timeout exceptions different Python versions can throw.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -439,7 +439,7 @@ if __name__ == '__main__':
|
||||
except KeyboardInterrupt:
|
||||
print('\n\nKeyboard Interrupt: cleaned up {} flows.'.format(len(nsock.shutdown())))
|
||||
break
|
||||
except TimeoutError:
|
||||
except nDPIsrvd.SocketTimeout:
|
||||
stats.updateSpinner()
|
||||
stats.resetStatus()
|
||||
stats.printStatus()
|
||||
|
||||
Reference in New Issue
Block a user