diff --git a/mozilla/webtools/bonsai/addcheckin.tcl b/mozilla/webtools/bonsai/addcheckin.tcl index 97a3c4e9bc3..8b2f5f61695 100755 --- a/mozilla/webtools/bonsai/addcheckin.tcl +++ b/mozilla/webtools/bonsai/addcheckin.tcl @@ -116,7 +116,7 @@ if {![info exists forcetreeid]} { ConnectToDatabase AddToDatabase $appendjunk $plainlog - + DisconnectFromDatabase } Unlock diff --git a/mozilla/webtools/bonsai/globals.tcl b/mozilla/webtools/bonsai/globals.tcl index 2c7dc9f4dcb..6433c7ee58f 100755 --- a/mozilla/webtools/bonsai/globals.tcl +++ b/mozilla/webtools/bonsai/globals.tcl @@ -91,6 +91,15 @@ proc ConnectToDatabase {} { } } +proc DisconnectFromDatabase {} { + global mysqlhandle + if {[info exists mysqlhandle]} { + mysqlclose $mysqlhandle + unset mysqlhandle + } +} + + proc SendSQL { str } { # puts $str global mysqlhandle errorInfo