]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/smux.cpp
SMUX reload with reconnect implemented
[stg.git] / projects / stargazer / plugins / other / smux / smux.cpp
index bcfc940e432f146a7fffa4e50c4fac1b526600df..8faccc2d3ed8de0fee1abd2c82beba906ae527d5 100644 (file)
@@ -256,6 +256,15 @@ printfd(__FILE__, "SMUX::Stop() - After\n");
 return 0;
 }
 
 return 0;
 }
 
+int SMUX::Reload()
+{
+if (Stop())
+    return -1;
+if (Start())
+    return -1;
+return 0;
+}
+
 void * SMUX::Runner(void * d)
 {
 SMUX * smux = static_cast<SMUX *>(d);
 void * SMUX::Runner(void * d)
 {
 SMUX * smux = static_cast<SMUX *>(d);