From f9d8d746e250ce030bf99e1ede920ac094b3ca2a Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 5 Dec 2012 15:11:06 +0100 Subject: [PATCH] [FIX] netsvc.py: ignore ENOTCONN on windows when calling shutdown() on sockets bzr revid: chs@openerp.com-20121205141106-0oynmc3qdvy58owu --- openerp/netsvc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/netsvc.py b/openerp/netsvc.py index e2e435a746f..e9b130979e7 100644 --- a/openerp/netsvc.py +++ b/openerp/netsvc.py @@ -54,7 +54,7 @@ def close_socket(sock): # of the other side (or something), see # http://bugs.python.org/issue4397 # note: stdlib fixed test, not behavior - if e.errno != errno.ENOTCONN or platform.system() != 'Darwin': + if e.errno != errno.ENOTCONN or platform.system() not in ['Darwin', 'Windows']: raise sock.close()