VirtualMailManager/Domain.py
changeset 110 cb8b2f6a5fca
parent 102 485d3f7d6981
child 122 30abf0abf8f8
--- a/VirtualMailManager/Domain.py	Fri Aug 14 06:16:01 2009 +0000
+++ b/VirtualMailManager/Domain.py	Fri Aug 14 06:40:55 2009 +0000
@@ -170,6 +170,8 @@
         force -- True/False force new transport for all accounts (bool)
         """
         if self._id > 0:
+            if transport == self._transport.getTransport():
+                return
             trsp = Transport(self._dbh, transport=transport)
             dbc = self._dbh.cursor()
             dbc.execute("UPDATE domain_data SET tid = %s WHERE gid = %s",