Commit f1402545 authored by Chris T's avatar Chris T

Clean up unnecessary code

parent 5a4f074c
......@@ -525,8 +525,8 @@ pur_mm_state (int state)
break;
case PUR_MM_STATE_NO_MODEM:
if (modem->modem_available) {
mmsd_plugin_disconnect();
pur_mm_disconnect ();
mmsd_plugin_disconnect();
DBG("ModemManagerPlugin(): Modem vanished, Disabling plugin");
} else {
......@@ -816,7 +816,6 @@ static void mmsd_plugin_connect (void) {
mms_service_register(modem->service);
DBG("ModemManagerPlugin(): Setting Bearer Handler");
mms_service_set_bearer_handler(modem->service, bearer_handler, modem);
bearer_handler(TRUE, modem);
}
......@@ -824,7 +823,6 @@ static void mmsd_plugin_connect (void) {
static void mmsd_plugin_disconnect (void) {
DBG("ModemManagerPlugin(): Disconnecting ModemManager Plugin");
DBG("ModemManagerPlugin(): Disabling Bearer Handler");
bearer_handler(FALSE, modem);
mms_service_set_bearer_handler(modem->service, NULL, NULL);
if (modem->context_active) {
unset_context();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment