Skip to content

Commit

Permalink
Closes #1; Call self.switch in packet_notice to avoid a stale connect…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
troyjfarrell committed Jul 19, 2011
1 parent 87f2117 commit dec1272
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pgasync/protocol.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def packet_notice(self,data):
params[k] = v params[k] = v


log.msg ("%s: %s" % (params["C"],params["M"])) log.msg ("%s: %s" % (params["C"],params["M"]))
self.switch()


def packet_error(self,data): def packet_error(self,data):
"""The backend told us a fatal error has occurred. """The backend told us a fatal error has occurred.
Expand Down

0 comments on commit dec1272

Please sign in to comment.